简体   繁体   中英

Restoring page zoom/scale via button

Unfortunately I have no code at all to begin with. After a long search on Google and on Stackoverflow I can't seem to find anything related with this.

Basically I have a button on my webpage saying, for example, "Restore scale", so that when someone clicks on it, the page's zoom/scale restores to 100%. Though I have no clue about how to do this.

Can someone help?

jQuery和CSS解决方案:

$('body').css('MozTransform','scale(1)');

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