[转载]HTML的zoom属性_codestorm_新浪博客

本文详细介绍了HTML中zoom属性的功能及使用方法。该属性可以设置或获取对象的缩放比例,支持normal、数字和百分比三种值。文章还讨论了zoom属性如何影响周围内容的布局及其与其他属性的相似之处。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文地址:HTML的zoom属性 作者:code_storm

Sets or retrieves the magnification scale of the object .

Syntax

HTML{ zoom : vMagnification }
Scriptingobject .style.zoom [ =  vMagnification ]

Possible Values

vMagnificationVariant that specifies or receives one of the following values.
normalDefault. Magnification scale is normal. The object renders normal size.
numberFloating-point number that specifies the magnification scale, where 1.0 is normal.
percentageInteger, followed by a %. The value is a percentage of the magnification scale, where 100% is normal.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of normal . The Microsoft Cascading Style Sheets (CSS) extension is not inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

Setting the value of the zoom property on a rendered object causes the content that surrounds the object to reflow.

Even though the zoom property is not inherited, it affects its children. This effect is similar to the transformation caused by the background and filter properties.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值