摘要:
当两个空的块级元素嵌套时,如果内部的块设置有margin-top属性,那么内部块的margin-top属性会绑架父级元素<div id="parrent"> <div id="box1"></div></div>#parrent{ width:500px; height:300px; background:teal;}#box1{ width:100px; height:100px; background:aqua; margin:20px;}解决方法:1、设置父元素或者自身的display:inline- 阅读全文
posted @ 2012-05-13 20:57
斑驳_光影
阅读(229)
评论(0)
推荐(0)
摘要:
区别不同浏览器的CSShack写法: 区别IE6与FF: background:orange;*background:blue; 区别IE6与IE7: background:green!important;background:blue; 区别IE7与FF: background:orange;*background:green; 区别FF,IE7,IE6: background:orange;*background:green!important;*background:blue; 注:IE都能识别*;标准浏览器(如FF)不能识别*;IE6能识别*,但不能识别!important, IE7能 阅读全文
posted @ 2012-05-13 15:44
斑驳_光影
阅读(312)
评论(0)
推荐(0)
浙公网安备 33010602011771号