2017年2月16日

四边参数值的设定

摘要: border,margin,padding 拿border举例 border:上,右,下,左。 border:上下,左右。 border:上下左右。 border:上,左右,下。 阅读全文

posted @ 2017-02-16 10:20 想要逆袭的学渣 阅读(85) 评论(0) 推荐(0) 编辑

命名规范

摘要: 转载自https://www.douban.com/group/topic/2359257/ 头:header 内容:content/container 尾:footer 导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体布局宽度:wrapper 左右中:left right 阅读全文

posted @ 2017-02-16 10:14 想要逆袭的学渣 阅读(82) 评论(0) 推荐(0) 编辑

属性选择器

摘要: 1、[attribute] a[target]{background-color:yellow;} <a href="#">aaa</a> <a href="#" target="_blank">bbb</a> 2、[attribute=value] a[target=_blank]{backgro 阅读全文

posted @ 2017-02-16 10:02 想要逆袭的学渣 阅读(93) 评论(0) 推荐(0) 编辑

优先级

摘要: id,class,td还有html里的样式优先级问题。。。 #bgGreen{ } .bgRed{ background-color: Red; } td{ background-color: Black; } <table> <tbody> <tr> <td class="bgRed" id="b 阅读全文

posted @ 2017-02-16 09:10 想要逆袭的学渣 阅读(89) 评论(0) 推荐(0) 编辑

导航