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

CSS
CSS 介绍
CSS 语法
使用 CSS
CSS 背景
CSS 文字
CSS 字体
CSS 边框
CSS 边距
CSS 填充
CSS 列表
CSS 尺寸
CSS 类别
CSS 定位
CSS 伪类
CSS 伪元素
CSS2 Media类型
CSS 摘要
CSS 实例
CSS2 参考资料
CSS2 打印

CSS quotes属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 311 ::
收藏到网摘: 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

登陆 | 还没注册?