我可以停止缩放元素的大小吗? [英] Can I stop the resizing of elements on zoom?

查看:83
本文介绍了我可以停止缩放元素的大小吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个标准的网站,当用户放大(CTRL +)时,我该如何防止元素的大小调整?

I have a standard website, and when the user zooms in (CTRL +), how can I prevent elements from resizing?

推荐答案

当用户放大时,我无法知道如何防止项目缩放。可能有办法相应地捕捉缩放事件和大小元素,但它不适用于所有浏览器。

There's no way I know of to prevent items from scaling when a user zooms in. There may be a way to catch the zoom event and size elements accordingly, but it won't work in all browsers.

为了说明这一点 - 人们放大,因为他们无法以正常缩放读/看它。 Pleeeaase不会违反标准行为。这是有原因的。

And to state the obvious - people zoom in because they can't read/see it at normal zoom. Pleeeaase don't break standard behaviour. It's there for a reason.

这篇关于我可以停止缩放元素的大小吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆