<!DOCTYPE html>
  <html>
    <head>
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
      *{
        margin: 0;
        padding: 0;
      }
      .box{
        width: 750px;
        height: 300px;
        background: red;
        font-size: 0;
      }
      img{
        width: 375px;
        height: 300px;
        font-size: 0;
      }
    </style>
</head>
<body>
  <!--空格很重要,如果追求精细的布局,不要带空格 或者父子元素都用font-size:0 这个属性,可以去除空格-->
  <div class="box">
    <img src="../img/touxiang.png" />
    <img src="../img/touxiang.png" />
  </div>
</body>
</html>

相关文章:

  • 2021-06-21
  • 2022-12-23
  • 2021-10-10
  • 2021-05-02
  • 2021-11-20
  • 2021-11-29
猜你喜欢
  • 2022-02-06
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-04-04
相关资源
相似解决方案