網站:ifnrussiacisforum.ru頁腳是不是在移動設備上正確顯示
它是在PC機上100%的寬度,但有一些空的空間移動,likt這樣:
的代碼是:
HTML:
<div class="footer">
<div class="container">
<img src="images/logo-img.jpg" alt="beeboss" />
</div>
</div>
CSS:
.footer {
height: 60px;
width: 100%;
background: #000;
}
.footer .container {
width: 1003px;
margin: 0 auto;
}
.footer .container img {
margin:19px 0px 0px 20px;
}
你試過寬度:100% – gurvk
'寬度:1003px;'是不好的反應。我建議使用'100%'或者至少'100vw' –
嘗試寬度:100% - 仍是同樣的問題。嘗試在兩個設備上。 – kulan