问题描述:

The page not working in IE8 is http://gainntrain.com/shopping/index.php

It IS working chrome and firefox...

This page loads from CubeCart, but the page I edited to alter the skin http://gainntrain.com/shopping/skins/KitaBlue/styleTemplates/global/index.tpl

That page has the same problem in IE8

The thing I don't understand is that the same header works fine on other pages of the site in IE8


Changed the <header> and <nav> tags to divs with classes using the styles that the tags had and that seems to be handling it just fine so thanks for the answers!

网友答案:

Look at
Validator
and
Jigsaw

Notice that the only errors in Jigsaw are CSS3 rules. I would suggest looking at the HTML because of this line in Validator's analysis of your page

    Line 11, Column 107: end tag for "link" omitted, but OMITTAG NO was specified
…="http://www.gainntrain.com/site/css/style.css" type="text/css" media="screen">
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

It looks like your document is using HTML5 features but is using an older doctype declaration. I would suggest changing:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

to:

<!doctype html>
<html>

That is as long as it doesn't break the site. :]

网友答案:

Try an online HTML validator on the output, like this one. If you choose the right validator, it's likely to be able to pick out the sticky bits that work better in some browsers than others. Sifting through code by hand to find a solution like this is difficult and time-consuming.

相关阅读:
Top