哈洛

导航

2014年10月8日

:before和 :after

摘要: :before和:after的作用就是在指定的元素内容(而不是元素本身)之前或者之后插入一个包含content属性指定内容的行内元素,最基本的用法如下:#example:before { content: "#"; color: red;}#example:after { cont... 阅读全文

posted @ 2014-10-08 14:34 哈洛 阅读(458) 评论(0) 推荐(0) 编辑