<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <style>
    body {
        padding: 0;
        margin: 0;
    }
    
    /*垂直居中*/
    .box {
        width: 1200px; /*图片宽*/
        height: 650px; /*图片高*/
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -600px;/* 宽/2 */
        margin-top: -325px; /* 高/2 */
    }
    </style>
</head>

<body>
    <div class="box">
        <img src="img/luomu_02_02.png" /> 
    </div>
</body>

</html>

@落雨
http://ae6623.cn

效果:

div css水平垂直居中

相关文章:

  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-11-27
  • 2021-12-05
  • 2021-12-13
猜你喜欢
  • 2021-10-29
  • 2022-01-05
  • 2021-11-21
  • 2021-12-01
  • 2022-12-23
  • 2021-12-01
相关资源
相似解决方案