简体   繁体   中英

css / javascript page zoom

I have been trying to find a way to get the web browsers current web page zoom depending on the screen resolution that is currently in use. What would be the best method to get the page zoom as a number and then adjust the page accordingly using the following code,

Code Example,

zoom: 1.5;
-moz-transform: scale(1.5);
-webkit-transform: scale(1.5);

I will be adjusting using JS Script. Any examples of the best method to do this would be helpfull.

Thank you!

如果您使用的是jQuery,则jQuery Zoomooz.js( http://janne.aukia.com/zoomooz/ )会为您处理此问题。

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