摘要: overflow:hidden的意思是超出部分去掉,如果父元素height为auto,内部元素浮动,势必会将内部元素全部隐藏,故计算出内部浮动高度顺便清除浮动。 阅读全文
posted @ 2016-12-13 08:57 web紫萱 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1.doctype作用 阅读全文
posted @ 2016-12-12 15:47 web紫萱 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 第一种方法: 阅读全文
posted @ 2016-12-12 15:37 web紫萱 阅读(969) 评论(0) 推荐(0) 编辑
摘要: 给li标签添加属性<ul> <li></li> <li></li> <li></li> <li></li></ul>1.用jquery方法 $('ul').find('li').attr("index", function () {return $(this).index()})2.用js方法 va 阅读全文
posted @ 2016-12-12 11:25 web紫萱 阅读(5506) 评论(0) 推荐(0) 编辑
摘要: 1.浮动法 阅读全文
posted @ 2016-12-12 09:02 web紫萱 阅读(5152) 评论(0) 推荐(0) 编辑