语法:

quotes:none |[<string><string>]+

默认值:none

适用于:所有元素

继承性:有

取值:

none:content属性的open-quote和close-quote值将不会生成任何标记
<string>:定义content属性的open-quote和close-quote值的标记,2个为一组

说明:

设置或检索对象内使用的嵌套标记。
  • 对应的脚本特性为quotes

 

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8" />
    <title>CSS参考手册</title>
    <style>
         q:lang(en) { quotes: '[' ']' "<" ">";}
         q:lang(zh-cn) { quotes: "«" "»" '"' '"';}
    </style>
</head>
<body>
    <p lang="en"><q>Quote me <q>Quote me</q> Quote me!</q></p>
    <p lang="zh-cn"><q>Quote me <q>Quote me</q> Quote me!</q></p>
</body>
</html>

 

相关文章:

  • 2021-04-08
  • 2021-06-03
  • 2021-07-20
  • 2021-11-12
  • 2021-10-25
  • 2021-06-18
  • 2022-12-23
  • 2021-06-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-01-02
  • 2021-05-27
  • 2022-01-03
相关资源
相似解决方案