我有一个加载到jQuery颜色框内的屏幕,它工作正常,但问题是它加载的方式看起来不平滑。以下代码是否有任何问题?还是有任何我无法找到的设置?
$.fn.colorbox({
iframe : true,
width : '90%',
height : '90%',
scrolling : false,
className: 'team-regedit-popup',
href : url + "?" + params+"&projectId=" + projectId,
overlayClose : false,
onClosed : function() {
$(parent.document.getElementById('cboxClose')).show();
var sortId = $('.sortButton.sort_sel').data('sortid');
var searchText = $('#searchText').val();
projectRegistration.displayTeamTable(sortId, searchText);
F.unlock_scroll(self);
}
});
我尝试了fastIframe: false
,但没有帮助。
答案 0 :(得分:1)
尝试docs中的transition
标记,它有三个值,默认为elastic
,尝试使用none
或fade
。
$.fn.colorbox({
iframe : true,
width : '90%',
height : '90%',
scrolling : false,
transition : none,
className: 'team-regedit-popup',
href : url + "?" + params+"&projectId=" + projectId,
overlayClose : false,
onClosed : function() {
$(parent.document.getElementById('cboxClose')).show();
var sortId = $('.sortButton.sort_sel').data('sortid');
var searchText = $('#searchText').val();
projectRegistration.displayTeamTable(sortId, searchText);
F.unlock_scroll(self);
}
});
希望它会有所帮助。