摘要:
常见的属性值 none:元素隐藏 block:块级元素 inline-block:内联块级元素 list-item:列表项目 表格系列方面的显示 table table-row flex(弹性盒子) 阅读全文
posted @ 2017-06-14 10:53
Candice&Gladys
阅读(217)
评论(0)
推荐(0)
摘要:
水平居中:行内元素、块级元素、浮动、绝对定位 行内:父元素设置 水平居中: text-align:center 垂直居中:line-height:height值 块级: 水平居中:margin: 0 auto 垂直居中: 确定高:除父元素line-height外,当前元素: vertical-ali 阅读全文
posted @ 2017-06-14 10:40
Candice&Gladys
阅读(333)
评论(0)
推荐(0)
摘要:
1.优先级顺序为:!important>style>权重值 2. 如果权重相同,则最后定义的样式的起作用,应该避免这种情况出现 权重规则 标签的权重为1 class的权重为10 id的权重为100 阅读全文
posted @ 2017-06-14 09:47
Candice&Gladys
阅读(108)
评论(0)
推荐(0)
摘要:
相同点 不同点 注意点: .test:hover::before { /* 这时animation和transition才生效 */ } .test:hover::before { /* 这时animation和transition才生效 */ } 阅读全文
posted @ 2017-06-14 09:45
Candice&Gladys
阅读(381)
评论(0)
推荐(0)

浙公网安备 33010602011771号