工作下面是我所實現的多重背景圖像,主體簡單的代碼,但鑑於,適用於所有其他瀏覽器的代碼不能在IE 7中運行和8。我已經使用PIE.htc這是相對於HTML文件,但仍然沒有成功。請幫我解決這個例子。多背景圖片不是在IE8和IE7
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body style="background: url(header_top_border.png) repeat-x, url(bg_1px.jpg) repeat-x; behavior: url(http://localhost/mutliple_bg/PIE.htc);
-pie-background:url(header_top_border.png) repeat-x, url(bg_1px.jpg) repeat-x; position:relative; zoom:1; z-index:1;">
</body>
</html>
通過使用容器和body標籤可以輕鬆實現多個背景,但我的目標是使用PIE.htc,它可以幫助IE7,8中的多個背景圖像。這是否意味着PIE.htc不支持IE7,8的多個背景屬性。請澄清我的疑問。 – Joel 2012-08-25 12:15:22