2012-07-03 81 views
0

我在加載IE9中的漸變時遇到了問題。我使用colorzilla生成它,其中包含一個用於禁用過濾器的IE條件註釋,以便使用IE9的svg組件。當我在IE9中打開頁面時,它會正確呈現,直到我點擊「允許阻止的內容」按鈕。ie9允許阻止的內容有條件註釋

我已經嘗試使用元標記和html標記,並刪除腳本以查看是否有其中一個干擾。沒有骰子。

下面是我的頭部分代碼:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> 

<head> 
<title>Tahoe Motion Picture Rentals</title> 
<!--<meta http-equiv="content-type" content="text/xml; charset=utf-8" />--> 
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 

<!--[if gte IE 9]> 
<style type="text/css"> 
.gradient { 
filter: none; 
} 
</style> 
<![endif]--> 

<link rel = "stylesheet" type = "text/css"href = "picturePage - Hor. Menu.css" /> 
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> 
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script> 
<script type="text/javascript" src="js/buttonClick.js"></script> 
<script type="text/javascript" src="js/jquery.color.js"></script> 

</head>  

謝謝你的時間提前任何幫助。這一直在讓我瘋狂。

回答

1

即使colorzilla只用「過濾器」輸出代碼,顯然需要「-ms-」前綴。有趣的是,我在另一個元素上使用了filter/svg,它沒有使用「-ms-」前綴。我認爲也許它與是否有多種顏色中止有關。另外,我認爲我在某處讀過,在沒有前綴的情況下,過濾器在IE8中根本不起作用。