- HTML(超文本标记语言)

<ins> - HTML(超文本标记语言)

尝试一下

“You're late!”

“I apologize for the delay.”

“A wizard is never late …”

del,

ins {

display: block;

text-decoration: none;

position: relative;

}

del {

background-color: #fbb;

}

ins {

background-color: #d4fcbc;

}

del::before,

ins::before {

position: absolute;

left: 0.5rem;

font-family: monospace;

}

del::before {

content: "−";

}

ins::before {

content: "+";

}

p {

margin: 0 1.8rem 0;

font-family: Georgia, serif;

font-size: 1rem;

}

内容分类短语元素 或者 流式元素 。

允许内容 透明内容模型。

标签省略:不允许,开始标签和结束标签都不能省略。

允许的父级标签任意短语元素

允许的 ARIA 角色任意

DOM 接口 HTMLModElement

属性

该元素支持所有 全局特性,除此以外还支持下列属性:

cite

cite 属性的值指向一个文档的 URL,该文档解释了文本被插入或修改的原因。(目前该属性还没有被主流浏览器支持)

datetime

该特性指示的此修改发生的时间和日期,并且该特性的值必须是一个有效的日期或者时间字符串。如果该值不能被解析为日期或者时间,则该元素不具有相关联的时间标记。

示例

html这一段文本是新插入至文档的。

结果

这一段文本是新插入至文档的。

规范

Specification

HTML# the-ins-element

浏览器兼容性

参阅

Help improve MDN

Was this page helpful to you?

Yes

No

Learn how to contribute

This page was last modified on 2025年8月6日 by MDN contributors.

View this page on GitHub • Report a problem with this content

相关数据

iphone怎么删除文件
bt365最快线路检测

iphone怎么删除文件

⌛ 01-08 👁️ 1119