摘要: 1.内联样式表 <div style="width:100px;height:100px"></div> 冗余代码多 维护起来非常困难 2.内部样式表 写在<head>内部 <head> <style> div{ width:100px; height:100px; } </style> </hea 阅读全文
posted @ 2016-12-10 10:39 东张西旺 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.display:none; 2.visibility:hidden; //这种方法隐藏了还是会占位的 3.raba(0,0,0,0.5); //可以调节a来改变透明度 a的取值0-1. 没继承性. 4.opacity:0.5; //opcity的取值0-1 0是完全透明 1是不透明. 具有继承性 阅读全文
posted @ 2016-12-10 10:00 东张西旺 阅读(811) 评论(0) 推荐(0) 编辑