自定义Tabs 切换的时候会回到页面顶端,如何设置?

提问 未结 1 3530
悬赏:20飞吻
function addTab(options) {
var src, title;
src = options.href;
title = options.title;
var iframe = '<iframe src="' + src + '" frameborder="0" scrolling="auto" style="border:0;width:100%;height:98%;"></iframe>';
var t = $('#index_tabs');
parent.$('#index_tabs').iTabs("add", {
title: title,
closable: true,
content: iframe,
border: false,
fit: true,
class: 'layout easyui-fluid',
iconCls: 'fa fa-th'

});



}
以上代码不知道如何设置。
回帖
回帖须知