<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
*{
margin: 0;
padding: 0;
font-size: 0;
}
.class{
width:100%;
overflow: hidden;
display: flex;
justify-content: center;
}
.another-one{
background: url("kugou.jpg") center no-repeat;
width:100%;
height:445px;
}
</style>
</head>
<body>
<div class="class"><img src="kugou.jpg"></div>
<div class="another-one" ></div>
</body>
</html>
图片永恒居中
猜你喜欢
转载自blog.csdn.net/weixin_44081699/article/details/86466376
今日推荐
周排行