Jquery fancybox v2缩略图库不在IE中工作<=8(href为null或不是对象)
“我的图库”在除IE之外的所有浏览器中都能正常工作尝试删除href字符串开头的“/”字符{'href':'/Images/Top20/12.jpg','title':'12/12'},这是逗号可能导致的problems@wirey就这样。。。谢谢额外的逗号是问题所在。。。谢谢@wireyno问题:)IE对一切都很挑剔Jquery fancybox v2缩略图库不在IE中工作<=8(href为null或不是对象),jquery,fancybox,fancybox-2,Jquery,Fancybox,Fancybox 2,“我的图库”在除IE之外的所有浏览器中都能正常工作尝试删除href字符串开头的“/”字符{'href':'/Images/Top20/12.jpg','title':'12/12'},这是逗号可能导致的problems@wirey就这样。。。谢谢额外的逗号是问题所在。。。谢谢@wireyno问题:)IE对一切都很挑剔 <a href="#" id="showPics">View<br />12-Picture<br />Portfolio</a>
<a href="#" id="showPics">View<br />12-Picture<br />Portfolio</a>
$('#showPics').click(function () {
$.fancybox([
{
'href': '/Images/Top20/01.jpg',
'title': '1 of 12'
},
{
'href': '/Images/Top20/02.jpg',
'title': '2 of 12'
},
{
'href': '/Images/Top20/03.jpg',
'title': '3 of 12'
},
{
'href': '/Images/Top20/04.jpg',
'title': '4 of 12'
},
{
'href': '/Images/Top20/05.jpg',
'title': '5 of 12'
},
{
'href': '/Images/Top20/06.jpg',
'title': '6 of 12'
},
{
'href': '/Images/Top20/07.jpg',
'title': '7 of 12'
},
{
'href': '/Images/Top20/08.jpg',
'title': '8 of 12'
},
{
'href': '/Images/Top20/09.jpg',
'title': '9 of 12'
},
{
'href': '/Images/Top20/10.jpg',
'title': '10 of 12'
},
{
'href': '/Images/Top20/11.jpg',
'title': '11 of 12'
},
{
'href': '/Images/Top20/12.jpg',
'title': '12 of 12'
},
], {
prevEffect: 'none',
nextEffect: 'none',
padding: '3',
mouseWheel: 'true',
helpers: {
title: {
type: 'outside'
},
overlay: {
opacity: 0.8,
css: {
'background-color': '#000'
}
},
thumbs: {
width: 85,
height: 85
}
}
});
});