我需要將我的背景圖像居中放在屏幕的中心位置,但是當前的代碼使得圖像在其頂部截斷。這裏是我到目前爲止的代碼:在沒有切斷中心的情況下擁有背景
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