Grid 960 and CSS - doesn't show in all browsers
I have a small problem wh开发者_运维知识库en I test my html and css.
I'm making the HTML to a new Wordpress theme. I make the whole structure and call the CSS and JS files.
They appear in Chrome but not in other browsers. How to fix this?
The first five stylesheets have type text/javascript
, which they certainly aren't. Update them to text/css
and it should fix the problem. Or, as Rick Bradshaw mentions in the comments, omit the type attribute entirely. This works because the default type
value for stylesheet links is text/css
.
I also noticed that your DOCTYPE is HTML 3.2, which I highly recommend that you change. Ideally, you'd change it to the DOCTYPE defined in the HTML 5 spec:
<!DOCTYPE html>
This should convince browsers to use some better-defined behaviour in these kinds of cases. However, it seems Chrome would have loaded the stylesheet even with a non-Quirks DOCTYPE, which may be a bit contrary to the expected behaviour.
精彩评论