如何模拟浏览器缩放
我正在寻找一种模拟浏览器缩放的方法。我找到了不同的方法,但没有一种方法适合我。例如,“缩放”属性似乎在 Firefox 上不起作用。 -moz-transform 的行为不像 ctrl++
也许有一个 jQuery 插件或 CSS3 属性可以做到这一点?或者也许我滥用了 Firefox 上的缩放属性?
谢谢你!
I'm searching a way to emulate the browser zoom. I found different approaches but nothing works well for me. For example, the "zoom" property doesn't seem to work on firefox. The -moz-transform doesn't act like ctrl++
Maybe there is a jQuery plugin or a CSS3 property to do that ? Or maybe I misused the zoom property on Firefox ?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 CSS3变换函数:缩放。我认为它应该对你有用。我会尽快发布一个示例。
这是一个示例,它使用带有比例的transform属性,以及
transform -origin: 左上角
(否则它将从中间缩放,根据您的需要进行更改)。所有必要的文档都在我给您的第一个链接中(这个)。
You can use CSS3 transformation function: scale. I think it should do the trick for you. I'll post an example ASAP.
Here's an example, it uses the transform property with scale, and
transform-origin: top left
(otherwise it will scale it from the middle, change as you see fit).All the necessary documentation is in the first link I gave you (this one).