比如:这个宽为980px 然后三列都320px 剩下的就是他们中间的间距.
适合所有浏览器的写法!
无标题文档 #wrapper { width: 980px; margin: 0 auto; }#header {width: 100%; background: #cfc;}#container { width: 100%; }#container #left,#container #content, #container #right { width: 320px; float: left }#left { background: #fc0;}#content { margin: 0 10px;background: #0c0;}#right { background: #0cf;}
header
查看更多关于CSS+DIV一行三列(等宽高,有间距)怎么写?(适合所有浏览器)_html/css_WEB-ITn的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did102359