How to make a HTML Page in A4 paper size page(s)?

前端 未结 15 1962
有刺的猬
有刺的猬 2020-11-22 16:30

Is it possible to make a HTML page behave, for example, like a A4-sized page in MS Word?

Essentially, I want to be able to show the HTML page in the browser, and out

15条回答
  •  爱一瞬间的悲伤
    2020-11-22 17:13

    It would be fairly easy to force the web browser to display the page with the same pixel dimensions as A4. However, there may be a few quirks when things are rendered.

    Assuming your monitors display 72 dpi, you could add something like this:

    
    
      
        
      
      
      
    
    

提交回复
热议问题