我需要将我的背景图像居中放在屏幕的中心位置,但是当前的代码使得图像在其顶部截断。这里是我到目前为止的代码:在没有切断中心的情况下拥有背景
body {
background-image: url(img/tooslow.gif);
background-repeat: no-repeat;
background-position: center;
min-width: 100%;
min-height: 100%;
}
img {
position: absolute;
bottom: 15%;
left: 42.5%;
margin: auto;
width: 250px;
height: 250px;
<a href="tooslow2.html"><img src="img/too1.png"></a>
你是在谈论'body'element的背景图像还是你在'img'标签中的图像,你在上面张贴的CSS? – Johannes