.center {
width: 966px;
height:538px;
text-align:center;
top: 0px;
margin-top: 0px;
padding-top:0px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
background-image: url(图片路径);
background-repeat: no-repeat;
background-position: center top;
}
<div class="center"><div>
DIV背景图片居中
最新推荐文章于 2021-11-25 17:13:41 发布