I have a web application that runs on JSF 2.0 + Richfaces 3.3.3. Looks great in all browsers except IE9.
In IE9, without a compatibility mode (With, no problem), it looks something like this (ignore the darkened text): 
Note that all components in the frame and CSS are ignored (not visible?)
JSP is as follows: (Relevant material only):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf8"> <link rel="stylesheet" href="css/pageStyle.css" type="text/css" > </head> <body> ... </body>
css is located in C:\apache\tomcat\webapps\MyWebApp\css\pageStyle.css
Anyone got it? Thanks!
UPDATE Conducted some research using the "developer tools", capturing packages with the network tab. The css file is sent with type = text/html instead of text/css . I think the problem is in line with this question.
But I still donβt know why this is happening. As you can see, the file type is clearly indicated as type="text/css in the <link> .
Another interesting observation is the consideration of the same object in the Chrome developer tools, the content type is text/css , perhaps this is an IE9 error. I'm confused...
source share