Is there a business reason for striving for pure CSS layout?

后端 未结 21 1303
情深已故
情深已故 2021-02-02 08:30

It seems like every time I try to create a pure CSS layout it takes me much longer than if I\'d use a table or two. Getting three columns to be equal lengths with different amou

21条回答
  •  情书的邮戳
    2021-02-02 09:27

    One other thing I just remembered, you can assign a different stylesheet to a page for printing vs. display.

    In addition to your normal stylesheet definition, you can add the following tag

    
    

    Which will render the document according to that style when you send it to the printer. This allows you to strip out the background images, additional header/footer information and just print the raw information without creating a separate module.

提交回复
热议问题