![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CSS
文章平均质量分 74
清儿风儿
心中有梦则不苦。
展开
-
CSS 浮动原理
CSS浮动原理: 浮动原理 div,span{width:100px;height:100px;background:red; } div1 div2 span1 span2 google: IE9 span是内嵌元素,不支持宽高。 css样式改成: div,span{width:100px;height:100px;background:red; displa原创 2016-01-10 13:32:21 · 1413 阅读 · 0 评论 -
CSS清浮动方法
接上个例子: 给box加上一个黑色实线边框border:5px solid #000; height:s600px;看看: 清浮动 body{margin:0;} .box{width:900px;margin:0 auto; border:5px solid #000; } .left{width:300px;float:left;} .left div{height:298px;原创 2016-01-13 17:58:46 · 437 阅读 · 0 评论