当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS quotes属性

CSS
CSS2 Aural
CSS 单位
CSS 颜色
CSS 颜色值
CSS 颜色名称
CSS 编码与组织技巧
CSS 模块化设计思路
CSS完美兼容IE6/IE7/FF的通用方法
CSS @ Ten: 下一个重要的东西

CSS quotes属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 330 ::
收藏到网摘: n/a

The quotes property sets the type of quotation marks for embedded quotations.
quotes 属性可设置嵌套标记类型

Inherited: Yes
继承性:有

举例

实例 1

q:lang(en)
{
quotes: '"' '"' "'" "'"
}

the style above and the following HTML file:
上面为样式,下面为HTML文件:

<html lang="en">
<head>
</head>
<body>
<p><q>This is a <q>big</q> quote</q></p>
</body>
</html>

would produce this output:
产生的结果为:

"This is a 'big' quote"

实例 2

q:lang(no)
{
quotes: "«" "»" "'" "'"
}

the style above and the following HTML file:
上面为样式,下面为HTML文件:

<html lang="no">
<head>
</head>
<body>
<p><q>Vi synger <q>Mellom bakkar og berg</q> på 17.mai.</q>
</body>
</html>

would produce this output:
产生的结果为:

«Vi synger 'Mellom bakkar og berg' på 17.mai.»

可用值

描述 NN IE
none The "open-quote" and "close-quote" values of the "content" property will not produce any quotation marks
content 属性的 open-quote close-quote 值将不会生成任何嵌套标记
   
string string string string Defines the quotation marks to use. The first two values specifies the first level of quotation embedding, the next two values specifies the next level of quote embedding, etc
用引号括起的嵌套标记定义。两个为一组。
   

引号字符

结果 描述 实体数
" double quote 双引号
&#34;
' single quote 单引号
&#39;
single, left angle quote
&#8249;
single, right angle quote
&#8250;
« double, left angle quote &#171;
» double, right angle quote &#187;
left quote (single high-6) &#8216;
right quote (single high-9) &#8217;
left quote (double high-6) &#8220;
right quote (double high-9) &#8221;
double quote (double low-9) &#8222;

评论 (0) All

登陆 | 还没注册?