如何模拟浏览器缩放

发布于 2024-12-14 23:17:09 字数 179 浏览 2 评论 0原文

我正在寻找一种模拟浏览器缩放的方法。我找到了不同的方法,但没有一种方法适合我。例如,“缩放”属性似乎在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手心的温暖 2024-12-21 23:17:09

您可以使用 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文