Code是很容易的:爲什麼HTML在頁面底部有神祕的「邊緣」?
<html xmlns="http://www.w3.org/1999/xhtml">
<body style="padding:0; margin:0;">
<form method="post" action="/default.aspx" id="form1" style="margin: 0px; padding: 0px;">
<div id="container-main" style="background-color:Red; height:1825px; position:relative;"> </div>
<div id="fascia-chiusura" style="background-color:#5CAE22; height:11px; position:relative; width:100%;"> </div>
</form>
</body>
</html>
但在Firefox/Chrome的它會在底部,這是不是在HTML元素一個奇怪的「空間」。爲什麼會這樣?我該如何解決它?
截圖:
截圖?或jsfiddle? – chovy
@chovy - 第一個詞是鏈接到小提琴。 –
div fascia-chiusura被放置在主容器下方。那是你要的嗎? –