Open zhengwei1949 opened 6 years ago
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .cont{ width:400px; background:pink; font-size: 0; } .product{ width:400px; } .b{ display: inline-block; width:30px; height:30px; position: absolute; background:red; margin-left:-30px; } </style> </head> <body> <div class="cont"> <img class="product" src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3502465005,4153501499&fm=200&gp=0.jpg" alt=""> <i class="b">aa</i> </div> </body> </html>