我正在尝试将 HTML 加载到 fancybox 弹出窗口中。除了 IE 8(我还没有检查过其他版本的 IE),其他所有浏览器都运行良好。弹出窗口打开,但其中没有任何内容。
这是我的js:
$(".fancyPopup").live('click', function(ev){
ev.preventDefault();
var selectedStrip = '#' + $(this).attr('id');
$(".fancyPopup").live('click', function(ev){
ev.preventDefault();
var selectedStrip = '#' + $(this).attr('id');
$.fancybox(
{
href: '/snapav/mkting/html/rackPowerStripSuggestions.html',
type: 'ajax',
fitToView : false,
afterShow: function(){
hideSeries();
$('.strips:not("' + selectedStrip + '")').hide('slow', function(){
$('ul' + selectedStrip).addClass('flagged');
});
}
});
});
任何帮助深表感谢。