摘要:
计算过程 1.W3C文档选择器权重的计算。 文档指出: A selector’s specificity is calculated for a given element as follows: count the number of ID selectors in the selector (= 阅读全文
posted @ 2018-03-29 18:08
AlanTao
阅读(816)
评论(0)
推荐(1)
摘要:
只要兼容现代浏览器如 webkit、firefox、opera等浏览器,对于伪元素采用双冒号的写法,要是非要兼容IE浏览器,用CSS2的单冒号写法比较安全。 首先,阅读 w3c 对两者的定义: CSS 伪类用于向某些选择器添加特殊的效果。 CSS 伪元素用于将特殊的效果添加到某些选择器。 可以明确两 阅读全文
posted @ 2018-03-29 17:42
AlanTao
阅读(2451)
评论(0)
推荐(0)
摘要:
1.scale方法 2.线性渐变linear-gradient, 流览器上面都不完美,效果都是虚的,和完美的0.5px还是有差距 3.使用boxshadow 4.使用SVG 二.几种效果 原址: https://juejin.im/post/5ab65f40f265da2384408a95 三. 画 阅读全文
posted @ 2018-03-29 17:21
AlanTao
阅读(519)
评论(0)
推荐(0)
摘要:
1.position+transform 2.flex 3.table-cell 4.absolute+margin 如: 5.浮动方案 absolute + relative 扩展性强,兼容性强; 阅读全文
posted @ 2018-03-29 16:52
AlanTao
阅读(858)
评论(0)
推荐(0)

浙公网安备 33010602011771号