开发者

Ie8 and below ODDLY ignoring all CSS [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraord开发者_运维技巧inarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I've never run into this before, but upon checking my work

http://ryanspahn.com/avia8/

in ie8 and below I am noticing it completely ignores the css. The css is being read in other browsers but not in ie8 and below.

I've never seen this before. Anyone have a suggestion?


Check style.css, line 51:

#extra-spacing {
    margin: 17px 0 0 0; 
    padding: 0 0 0 7px;" /* <- extra quote */
}  

When I removed the extra quote, it worked for me.


In the interest of education, this is how I found the problem:

First, I used IE9's developer toolbar (press F12 on the keyboard) to switch the browser mode to IE7. (IE8 also has the developer toolbar) Then I looked on the CSS tab and noticed that it was only loading a partial set of rules. Since it stopped at the #extra-spacing rule, I knew there was probably a syntax error there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜