摘要: 隔行变色: #list1 li:nth-of-type(odd){ background:#00ccff;}奇数行 #list1 li:nth-of-type(even){ background:#ffcc00;}偶数行 #list2 li:nth-child(4n+1){ back... 阅读全文
posted @ 2014-06-03 00:22 echo_yaonie 阅读(299) 评论(0) 推荐(0)
摘要: 师傅今天的每日一题是BFC,然后我就屁颠屁颠过去查了。只是查的资料上的一些内容,BFC在应用中频繁遇到。 第一,先了解什么是BFC(Box Formatting context),formatting context是一个决定如何渲染文档的容器。因此box的元素会以不同的方式渲染。 ... 阅读全文
posted @ 2014-06-03 00:11 echo_yaonie 阅读(132) 评论(0) 推荐(0)