CSS
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.hxxDesignMainfest-box {
position: relative;
top: 50%;
margin-top: -72px;
text-align: center;
}
.hxxDesignMainfest {
width: 144px;
height: 144px;
position: relative;
left: 50%;
background-size: 100% 100%;
margin-left: -72px;
}
.hxxDesignMainfest-txt {
display: inline-block;
color: #999;
font-size: 16px;
}
Debugging
https://static.hexingxing.cn/v2/example/css.element.absolutely.centered.html
0 条评论