HTML5 : Non-replaced vs. 替换元素?

标签 html

我看到 section 10.3 Non-replaced elements in the HTML5 spec .我能够通过 Google 找到定义,但 W3C HTML5 对非替换元素与替换元素的定义在哪里?

最佳答案

来自CSS2.1 spec :

Replaced Element

An element whose content is outside the scope of the CSS formatting model, such as an image, embedded document, or applet. For example, the content of the HTML IMG element is often replaced by the image that its "src" attribute designates. Replaced elements often have intrinsic dimensions: an intrinsic width, an intrinsic height, and an intrinsic ratio. For example, a bitmap image has an intrinsic width and an intrinsic height specified in absolute units (from which the intrinsic ratio can obviously be determined). On the other hand, other documents may not have any intrinsic dimensions (for example, a blank HTML document).

User agents may consider a replaced element to not have any intrinsic dimensions if it is believed that those dimensions could leak sensitive information to a third party. For example, if an HTML document changed intrinsic size depending on the user's bank balance, then the UA might want to act as if that resource had no intrinsic dimensions.

The content of replaced elements is not considered in the CSS rendering model.

关于HTML5 : Non-replaced vs. 替换元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8012297/

相关文章:

javascript - 双击列表项打开页面

javascript - jquery - 选择点击宽度上的最后一个 div

java - aui validator 无法处理在 liferay 中提交的表单

HTML5 输入 : min prevents steps any

javascript - 选择一个选项后禁用整个选择标签

javascript - HTML5 本地存储输入不显示

html - 如何更改 Foundation 中的模态链接颜色?

javascript - ajax请求:document. getElementByID('txtHint).innerHTML

asp.net - 为什么当光标位于我网页中的图像标签上时总是显示打印按钮

javascript - 如何在隐藏div时停止ie8中的视频?