跳到内容(1) Cob.com.cn

CodeCoke

CSS2.0中文手册·content

您的位置:首页>>教程>>CSS2.0中文手册>>content

content

版本:CSS2  兼容性:NONE 继承性:无

语法:

参数:

  1. attr(alt) :  使用alt特性的文字
    counter(name) :  使用已命名的计数器
    counter(name, list-style-type) :  使用已命名的计数器并遵从指定的list-style-type属性
    counters(name, string) :  使用所有已命名的计数器
    counters(name, string, list-style-type) :  使用所有已命名的计数器并遵从指定的list-style-type属性
    no-close-quote :  并不插入quotes属性的后标记。但增加其嵌套级别
    no-open-quote :  并不插入quotes属性的前标记。但减少其嵌套级别
    close-quote :  插入quotes属性的后标记
    open-quote :  插入quotes属性的前标记
  2. string :  使用用引号括起的字符串
  3. url :  使用指定的绝对或相对地址

说明:

示例:

p:after { content: url(http://Cob.com.cn/); text-decoration: none; }

p:before { content: url(beep.wav) }