我是新來的CSS所以,我希望你能幫助我PLZ。着色的DIV背景
我有3倍裏面的DIV(左DIV,DIV中心,右DIV)一個DIV
,我可以把我個人想要的背景(用DIV DIV),但是,因爲他們不在一起,也有它們之間的顏色差距。所以我試圖在包含三個DIV的DIV中放入相同的背景顏色,但它不起作用。
你能幫幫我嗎?
非常感謝!
在HTML
<!--Divs-->
<!--<div class="cor_fundo">-->
<div class="body_resize">
<div class="left">
left
left left left left left left left left left left left left left ddddddddd</div>
<div class="center">
center
ccccccccccccccc</div>
<div class="right">
right rrrrrrrrrrrrrrrrrrrr </div>
<div class="clr"></div>
</div>
<!--</div>-->
<!--FIM - Divs-->
的CSS
<!-- Divs Topo Pagina-->
.body_resize { padding:0; width:740px; margin:0 auto; background-color:#fff} -> this is the one that dont works
.right { width:130px;margin:0; padding:10px; float:right; background-color:#99CCFF}
.center {width:150px;margin:0; padding:10px; float:left; background-color:#99CCFF}
.left {width:400px;margin:0; padding:10px; float:left; background-color:#99CCFF}
<!-- FIM - Divs Topo Pagina-->
演示:http://jsfiddle.net/Iuppiter/c8dY8/
只是一個挑剔:不應該被標記爲PHP。這裏沒有PHP。 – Zarathuztra
我沒有看到任何差距http://jsfiddle.net/R7R8W/ – Musa