Resize page contents to fit on one print page

前端 未结 1 1471
旧时难觅i
旧时难觅i 2021-02-19 00:55

This problem IMO is more related to CSS but I am open to any solution. I am trying to print a webpage who\'s height is defined in px (I also tried %). Now What\'s happening in S

1条回答
  •  失恋的感觉
    2021-02-19 01:29

    Printing devices usually measure their content in physical dimmensions (in, cm, ft, etc). Pixel width is dependent on monitor resolution, and thus can't be relied upon for every output device.

    If it's crucial your page prints the way you'd like it, you'll most likely need a CSS file designed for printing -- one that uses inches, centimeters, or whatever you'd like.

    Check out this previous post -- I think it will help.

    0 讨论(0)
提交回复
热议问题