2012-10-03 115 views
0

我使用CSS的這條道路在我的aspx頁面:CSS在FF和Chrome的工作,但在IE不加載8

<link href="Styles/960.css" rel="stylesheet" type="text/css" /> 
     <link href="Styles/style.css" rel="stylesheet" type="text/css" /> 

它在FF和鉻,但在IE 8做工精細,CSS是未加載。

我嘗試在IE中使用localhost:9133/styles/style.css,並且加載/打開css。

:focus {/* remember to define focus styles! */ 
    outline: 0; 
} 
body { 
    line-height: 1; 
} 
ol, ul { 
    list-style: none; 
} 
table {/* tables still need 'cellspacing="0"' in the markup */ 
    border-collapse: separate; 
    border-spacing: 0; 
} 
caption, th, td { 
    font-weight: normal; 
    text-align: left; 
} 
blockquote:before, blockquote:after, 
q:before, q:after { 
    content: ""; 
} 
blockquote, q { 
    quotes: "" ""; 
} 
a img { 
    border: 0; 
} 
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { 
    display: block; 
} 

@font-face { 
    font-family: "homenaje"; 
    src: url('fonts/Homenaje-Regular.ttf') ; 
} 

請給我解決方案。

+0

你能給我聯繫呢? –

+0

它在我的本地計算機@ suresh.g – DotnetSparrow

+0

你怎麼知道它不會在IE中加載? –

回答

0

爲了選擇在IE8的工作,你需要指定doctype

<!DOCTYPE html>

+0

我使用這種文檔類型,但即使如此樣式不工作。 – DotnetSparrow

+0

好吧,我還有一個想法 - IE是否顯示兼容模式下的頁面? –

相關問題