0
我的web應用程序是Asp.NET 2.0,在一個頁面中,我使用HttpWebRequest將一些內容加載到容器頁面。這適用於Firefox,IE7/8,Safari,但會導致IE6崩潰。它掛起或關閉。使用HttpWebRequest和Css時IE6崩潰
我試圖讀取的內容頁面被稱爲tmp.html,如果我直接調用它(使用IE6),那麼它看起來沒問題。內tmp.html的HTML代碼是:
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-image: url(images/jpg/alt_right_top.png);
background-repeat: no-repeat;">
<tr>
<td align="center" valign="bottom">
<img src="images/jpg/baslik_icindekiler.jpg" style="margin-top: 20px;"></td>
</tr>
</table>
這個崩潰的瀏覽器,但如果我刪除行:"background-image: url(images/jpg/alt_right_top.png);"
那麼正確,即使我把它通過HttpWebRequest的顯示出來。
例如鏈接:http://www.smilevitamin.com/smilevitamin/vitamin.aspx
任何想法?這是Internet Explorer 6的錯誤嗎?
你是什麼意思?你的意思是使用JavaScript設置背景圖像? – UmutKa 2009-09-24 11:39:46