简体   繁体   中英

Disable page resize HTML

I am trying to figure out how to disable the zoom function on a browser where the user can use the keyboard to enlarge text/images. The "Command +" and "Command -" function on the keyboard. How can I disable this function?

I have seen it done with annualreport.elevationchurch.org

You could try using keyboard events to make a null, or pop up saying zoom disabled, event when users hit - or +.

http://api.jquery.com/category/events/keyboard-events/

Though that`s not the only way to zoom. You can also use your mouse or on certain browsers click view>zoom in.

I strongly recommend you don`t do that or try to disable zoom.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM