Now I encounter a BUG: in IE8, the table title (th) on the page displays normal text on the page, but after printing it becomes a slash. There is no problem with IE8 and above versions.
After debugging, I found that after removing the declared doctype, the header will print normally. Currently, doctype cannot be removed.
Have you ever encountered this kind of problem? Can you give me some clues? Thank you.
Always add the declaration to your HTML document so the browser knows the document type.
It should not be a doctype problem.
Yes, it should be written incorrectly somewhere, but I can’t find the reason, so I can only temporarily remove the doctype.