Print Scale by CSS

后端 未结 3 1381
情书的邮戳
情书的邮戳 2021-01-05 08:30

On IE 8 and Firefox (3.6 and 4), if you go to Print Preview, you adjust the Print Scale by a a percentage or use Shrink to Fit. Does CSS have a property like scale:50%; or s

相关标签:
3条回答
  • 2021-01-05 08:39

    There is Zoom:

    http://reference.sitepoint.com/css/zoom

    And moz/webkit-transform:

    http://help.dottoro.com/lcebdggm.php

    0 讨论(0)
  • 2021-01-05 08:58

    Since zoom or -ms-zoom doesn't work the way I expected it to on IE8, I ended up fiddling with the font-size and tr sizes. Hopefully MS makes a zoom that works like the Print Scale/Size functionality in the Print window from the browser.

    0 讨论(0)
  • 2021-01-05 09:00

    <style type="text/css" media="print">
    
    body {
      zoom:75%; /*or whatever percentage you need, play around with this number*/
    }
    
    </style>
    
    0 讨论(0)
提交回复
热议问题