html替换元素特点,关于html:HTML5:非替换元素还是替换元素?

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值