【发布时间】:2013-02-26 08:57:48
【问题描述】:
我是 MVC 3 的新用户,这个花式盒子让我头疼.. 在我的本地计算机上进行测试期间,它甚至在 firefox、chrome 和 IE 中运行良好。但是在我将它发布到我们的测试服务器后,它在 IE 中出现错误,指出: 用户代理:Mozilla/4.0(兼容;MSIE 8.0;Windows NT 5.1;Trident/4.0;GTB7.0;BTRS102579;.NET CLR 3.0.04506.648;.NET CLR 3.5.21022;.NET CLR 3.0.4506.2152;.NET CLR 3.5.30729;.NET CLR 2.0.50727;.NET4.0C;.NET4.0E)
消息:预期对象
线路:1
字符:1
代码:0
网址:http://ptywebsite-dev/Scripts/admin.js
消息:未实施
线路:146
字符:427
代码:0
网址:http://ptywebsite-dev/Scripts/jquery-1.4.4.min.js
我使用的是 IE8、jquery.fancybox-1.2.1.js 和 jquery-1.4.4.min.js。
下面是我的脚本:
<script type="text/javascript">
$(document).ready(function () {
/* This is basic - uses default settings */
$(".single_image").fancybox({
'padding': 0,
'type': 'iframe',
'frameHeight': 279,
'centerOnScroll': true,
'onComplete': function () {
$("#fancybox-frame").load(function () { //wait for frame to load and get its height
$("#fancybox-content").height($(this).contents().find('body').height() + 30)
});
}
});
/* Using custom settings */
$("a#inline").fancybox({ 'hideOnContentClick': true });
$("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false });
});
</script>
谁能告诉我我做错了什么?
【问题讨论】:
标签: jquery asp.net-mvc-3 internet-explorer-8 fancybox ie8-compatibility-mode