diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/html/element/ins | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/html/element/ins')
-rw-r--r-- | files/zh-cn/web/html/element/ins/index.html | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/files/zh-cn/web/html/element/ins/index.html b/files/zh-cn/web/html/element/ins/index.html new file mode 100644 index 0000000000..3d62ed7eec --- /dev/null +++ b/files/zh-cn/web/html/element/ins/index.html @@ -0,0 +1,94 @@ +--- +title: <ins> +slug: Web/HTML/Element/ins +tags: + - Element + - HTML + - HTML edits + - Reference + - Web +translation_of: Web/HTML/Element/ins +--- +<h2 id="简介">简介</h2> + +<p>{{HTMLRef}}<br> + <strong>HTML <code><ins></code> 元素</strong>定义已经被插入文档中的文本。</p> + +<p> </p> + +<p>{{EmbedInteractiveExample("pages/tabbed/ins.html", "tabbed-standard")}}</p> + +<p> </p> + +<ul class="htmlelt"> + <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">内容</a>分类</dfn><a href="/zh-CN/docs/Web/Guide/HTML/Content_categories#短语元素(Phrasing_content)">短语元素</a> 或者 <a href="/zh-CN/docs/Web/Guide/HTML/Content_categories#流式元素(Flow_content)">流式元素</a> 。</li> + <li><dfn>允许内容</dfn> <a href="/zh-CN/docs/Web/Guide/HTML/Content_categories#透明内容模型(Transparent_content_model)">透明内容模型</a>。</li> + <li><dfn>标签闭合</dfn> {{no_tag_omission}}</li> + <li><dfn>允许的父级标签</dfn>任意<a href="/zh-CN/docs/Web/Guide/HTML/Content_categories#短语元素(Phrasing_content)">短语元素</a></li> + <li><dfn>允许的ARIA角色</dfn>任意</li> + <li><dfn>DOM 接口</dfn> {{domxref("HTMLModElement")}}</li> +</ul> + +<h2 id="属性">属性</h2> + +<p><span style="line-height: 21px;">该元素支持所有 <a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes">全局特性</a>,除此以外还支持下列属性:</span></p> + +<dl> + <dt>{{htmlattrdef("cite")}}</dt> + <dd>cite 属性的值指向一个文档的 URL,该文档解释了文本被插入或修改的原因。(目前该属性还没有被主流浏览器支持)</dd> + <dt>{{htmlattrdef("datetime")}}</dt> + <dd>该特性指示的此修改发生的时间和日期,并且该特性的值必须是<a href="http://www.w3.org/TR/2011/WD-html5-20110525/common-microsyntaxes.html#valid-date-string-with-optional-time">一个有效的日期或者时间字符串</a>。如果该值不能被解析为日期或者时间,则该元素不具有相关联的时间标记。</dd> +</dl> + +<h2 id="示例">示例</h2> + +<pre class="brush: html"><ins>这一段文本是新插入至文档的。</ins></pre> + +<h3 id="结果">结果</h3> + +<p><ins>这一段文本是新插入至文档的。</ins></p> + +<h2 id="Specifications" name="Specifications">规范</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">评论</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', 'edits.html#the-ins-element', '<ins>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'edits.html#the-ins-element', '<ins>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML4.01', 'struct/text.html#h-9.4', '<ins>')}}</td> + <td>{{Spec2('HTML4.01')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<p> </p> + +<p>{{Compat("html.elements.ins")}}</p> + +<p> </p> + +<h2 id="参阅">参阅</h2> + +<ul> + <li>{{HTMLElement("del")}} </li> +</ul> + +<div> </div> |