Printing html ignores CSS stylesheets

前端 未结 3 1323
礼貌的吻别
礼貌的吻别 2021-01-11 16:48

I have a very simple html page with a table element.

The document is styled with css. When I print the page it looks like there are no stylesheets at all. Wrong fon

3条回答
  •  长发绾君心
    2021-01-11 17:16

    The media attribute is used to determine the stylesheet purpose. You need to make sure that it is set to all (for all purposes) or print (only used when printing).

提交回复
热议问题