自适应页面模板,不会应为是图片而导致显示的问题
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> <style> * { padding: 0; margin: 0; } body { width: 100%; } .error { width: 100%; } .error img { display: block; width: 100%; } </style> </head> <body> <div class="error"> <img src="要显示图片的url地址" alt=""> </div> </body> </html>