您的位置:首页 > Web前端 > CSS

CSS-追加内容before、after

2015-06-03 19:12 561 查看
插入图像文件
h1.new:after{
     content: url("mark_new.png");
}

插入编号
h1:before{
     /* 使用自增计数器 */
     content: counter(mycounter);
}
h1{
     /* 指定自增计数器 */
     counter-increment: mycounter;
}

在字符串两边添加嵌套文字符号
h1:before{
     content: open-quote;  
}
h1:after{
     content: close-quote;
}
h1{
     quotes: "(" ")";
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  css