Printing html ignores CSS stylesheets

前端 未结 3 1324
礼貌的吻别
礼貌的吻别 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:29

    Without the link to the page, I can only offer little advice.

    • Make sure the link to the stylesheet in the header is correct. And it should look something like this:

    I just noticed that you mentioned print. The all media type will work across web and print. However, if you wanted to explicitly state another stylesheet for print than replace the all with print.

    • Check to see if the style are not being overridden by something else. As CSS is Cascading Style Sheets
    • Get Firebug.

提交回复
热议问题