会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
jeffery1010
CnBlogs
Home
New Post
Contact
Admin
Subscription
2016年11月29日
CSS 优先级&伪元素&伪类
优先级 单冒号(:)用于CSS3伪类,双冒号(::)用于CSS3伪元素 伪元素 伪类
Read More
posted @ 2016-11-29 15:09 jeffery1010
Views(563)
Comments(0)
Diggs(1)
Edit
css before&after 特殊用途
平常仅仅需要将这两个伪元素用于添加一些自定义字符 p:before {content:"hello"} 但我们还可以使用before&after这两个伪类做一些特殊效果 在 CSS3 中为了区别伪元素和伪类为伪元素使用了双冒号,因此如果使用了 display 或者 width 等属性时使得显示脱离了
Read More
posted @ 2016-11-29 14:50 jeffery1010
Views(181)
Comments(0)
Diggs(0)
Edit
公告