摘要: a标签成为块元素后,宽度会百分百撑开,但高度不会,需要加高度。 阅读全文
posted @ 2014-03-02 14:47 N³ 阅读(99) 评论(0) 推荐(0) 编辑
摘要: IE6双倍距BUG的形成: 1.快元素 2.元素浮动 3.margin左右解决方案:_display:inline; 阅读全文
posted @ 2014-03-02 14:41 N³ 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 这里推荐先写显示属性,再写自身属性,再写文字属性;并不代表非得按这个顺序写,但这种写法可以使css结构更清晰易读,修改起来比较方便。而且在团队项目中能更好地提高效率。//显示属性displaylist-stylepositionfloatclear//自身属性widthheightmarginpaddingborderbackground//文本属性colorfonttext-decorationtext-alignvertical-alignwhite-spaceother textcontent 阅读全文
posted @ 2014-03-02 14:14 N³ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 子元素的浮动清除子元素的浮动.clearfix{zoom:1}/*IE 6-8*/.clearfix:after{content:'\20';display:block;height:0;clear:both;}/*IE 9以上*/ 阅读全文
posted @ 2014-03-02 13:25 N³ 阅读(129) 评论(0) 推荐(0) 编辑