Is there a meta tag or something for desktops that works like viewport initial-scale?

前端 未结 2 1378
一向
一向 2021-02-10 05:30

I know you\'re thinking that this is a strange request, however I am currently dealing with a client that gave me a template and decided he wanted it 70% smaller after seeing it

相关标签:
2条回答
  • 2021-02-10 05:44
    body {
    zoom: 0.7;
    transform: scale(0.7);
    transform-origin:0 0;
    -ms-transform: scale(0.7);
    -ms-transform-origin:0 0;
    -moz-transform: scale(0.7);
    -moz-transform-origin: 0 0;
    -o-transform: scale(0.7);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(0.7);
    -webkit-transform-origin: 0 0;
    }
    
    0 讨论(0)
  • 2021-02-10 06:03

    You might be able to use the CSS Zoom property but negativly? - supported in IE 5.5+, Opera, and Safari 4, and Chrome (verifed, please check before downvoting).

    Firefox is the only major browser that does not support Zoom (Check here) but you could use the "proprietary" -moz-transform property in Firefox 3.5.

    So you could use:

    div.zoomed { zoom: 70%; -moz-transform: scale(.7); }
    
    0 讨论(0)
提交回复
热议问题