- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no>
- body {
- width:600px;
- }
-
- $(function() {
- $(window).resize(function(){ setZoom() });
- setZoom();
- });
- function setZoom(){
- var scale = $(window).width() / $('body').width() * 100 + "%";
- $('html').css({'zoom' : scale });
- }
-