我使用fancybox作爲圖像保持器,它在所有瀏覽器(除IE以外的所有版本)中都可以正常工作。我查看了所有類似的問題,但他們沒有幫助。
我的文檔類型是<!DOCTYPE html>
。我在頭文件中的fancybox插件之前包含了最新的jQuery,並且在螢火蟲中沒有錯誤警告。
其中一頁位於:Here,圖像部分位於底部。
請幫幫我。事先感謝。Fancybox在IE中不工作:對象不支持此方法
如果您不方便去看的頁面,這是我的頭:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<link rel="shortcut icon" href="http://img.dachaocai.com/sys/fav.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="http://img.dachaocai.com/css/global.css" media="screen, projection" />
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen, projection" />
<![endif]-->
<script type="text/javascript" src="http://img.dachaocai.com/js/jq.js"></script>
<script type="text/javascript" src="http://img.dachaocai.com/js/global.js"></script>
<script type="text/javascript">isUser=false; </script>
<meta name="keywords" content="電影,鐵甲鋼拳 Real Steel(2011),肖恩·列維,休·傑克曼/Dako,劇照,海報,預告片" />
<meta name="description" content="電影 鐵甲鋼拳 Real Steel(2011) 的預告片, 簡介, 評分, 影評, 劇照, 海報與討論 · 大巢菜·電影·文藝·more" />
<link rel="stylesheet" type="text/css" href="http://img.dachaocai.com/css/bmfview.css" />
<link rel="stylesheet" type="text/css" href="/clientscript/ui/jui.css" />
<link rel="stylesheet" type="text/css" href="http://img.dachaocai.com/js/fb/fb2.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://img.dachaocai.com/js/bmf.js"></script>
<script type="text/javascript" src="http:///img.dachaocai.com/js/fb/fb.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
$(function(){
$(".fb").fancybox();
ui();
$("#pics .pagelink").click(function(){$("#imgs").html("<div class=\"loader\"><img src=\"http://img.dachaocai.com/sys/spinnerActive.gif\"/></div>");$this=$(this);$.ajax({url:"/j/getpics",data:{"t":"film","tid":tid,"p":$(this).html()},success:function(data){$("#imgs").html(data);$(".fb").fancybox();$("#pics .pagelink").attr("id","");$this.attr("id","curpage");ui();}})});
});
function ui(){
$(".imgholder img").hover(function(){$(this).animate({"border-top-width":"3px","border-left-width":"3px","border-right-width":"3px","border-bottom-width":"10px"},200);},function(){$(this).css("border-width","0px");});
}
/*]]>*/
</script>
<title>鐵甲鋼拳 Real Steel(2011) · 大巢菜</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25549966-1']);
_gaq.push(['_addOrganic', 'baidu', 'word']);
_gaq.push(['_addOrganic', 'soso', 'w']);
_gaq.push(['_addOrganic', 'yodao', 'q']);
_gaq.push(['_addOrganic', 'sogou', 'query']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
嗯,這是不是這個原因,我起初以爲,因爲它沒有工作在IE6,不支持這個元標記,無論是。我的測試證明了這一點。:)感謝你的努力。 – LotusH