定义和用法
该cite属性指定一个解释报价,或者为什么文本插入/改变了文档的URL。
适用于
该cite属性可以在下列元素一起使用:
分子 | 属性 |
---|---|
<blockquote> | cite |
<del> | cite |
<ins> | cite |
<q> | cite |
例子
Blockquote实例
从另一个来源引用的一段:
<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's
leading conservation organization, WWF works in 100 countries and is
supported by 1.2 million members in the United States and close to 5 million
globally. WWF's unique way of working combines global reach with a
foundation in science, involves action at every level from local to global,
and ensures the delivery of innovative solutions that meet the needs of both
people and nature.
</blockquote>
试一试» Del例
删除的文字,用URL到解释了为什么文本被删除的文件:
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
试一试» Ins示例
插入的文本,通过URL来解释为什么文本插入文档:
<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
试一试» Q例
指定一个报价的来源网址:
<p>WWF's goal is to:
<q cite="http://www.wwf.org">
Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>
试一试» 浏览器支持
该cite
属性为每个元素以下浏览器支持:
元件 | |||||
---|---|---|---|---|---|
blockquote | 是 | 是 | 是 | 是 | 是 |
del | 是 | 是 | 是 | 是 | 是 |
ins | 是 | 是 | 是 | 是 | 是 |
q | 是 | 是 | 是 | 是 | 是 |