自适应页面模板,不会应为是图片而导致显示的问题

<!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>

  

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-27
  • 2021-06-28
  • 2021-09-21
  • 2021-05-05
  • 2021-05-22
  • 2021-06-06
  • 2022-01-25
相关资源
相似解决方案