我在我的網站上使用Bootstrap 2.3。我已經設置了FOLL CSS:Css正文在部分之間可見?
body,section{
padding:0;
margin:0;
}
然而,對我的生活,我不明白爲什麼我米看到身體的部分之間的白色虛線? The Link
我在我的網站上使用Bootstrap 2.3。我已經設置了FOLL CSS:Css正文在部分之間可見?
body,section{
padding:0;
margin:0;
}
然而,對我的生活,我不明白爲什麼我米看到身體的部分之間的白色虛線? The Link
您的<h3>
導致。將這個:
h3{
margin:0;
padding:0;
}
的h3包含在該部分內,但邊距是從它溢出...是嗎? – user2556089
好[解釋](http://stackoverflow.com/questions/2176520/why-would-margin-not-be-contained-by-parent-element)。 – Vucko
設置下面的風格<h3>
標籤
margin-top:0px;
h3包含在該部分內,但邊緣溢出... Y? – user2556089
這就是所謂的邊緣崩潰:http://stackoverflow.com/questions/102640/css-margin-collapsing –
另一種解決方案
設置爲低於風格<section>
標籤
overflow: hidden;
你的鏈接隱藏請出示鏈接properway – falguni