
這一段箭頭所指的代碼bug出在哪里啊。。。。新手實在搞不懂了。。。。
uj5u.com熱心網友回復:
<style>*{ margin:0; padding:0 ;}
.header{ height:80px ; background-color: gray;}
.continer{height: 280px; background-color: gray;}
.continer .center{ height:200px ; float: left; width: 100% ;}
.continer .center p{ background-color: yellow; height: 100%; margin: 0 0 0 33%;}
.continer .left{ float: left; width: 33%; height: 200px; background-color: blue; margin-left: -100%;}
.continer .right{ float: left; width: 33%; height: 200px; background-color: green; margin-left: -33%;}
</style>
或者換一個問法,這一段css要是要通過提取通用樣式優化,應該要怎么優化。。。。。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/54500.html
標籤:HTML(CSS)
