<script type="text/javascript"> $(document).ready(function () {
$('#tt').tabs();
$('#tt').tabs('add', {
title: 'tab1 ',
closable: true,
content: '<iframe scrolling="yes" frameborder="0" src="Demo-MainFrame01.jsp?type=0" style="width:100%;height:100%;"></iframe>',
selected: true
}); $('#tt').tabs('add', {
title: ''tab2 ',
closable: true,
content: '<iframe scrolling="yes" frameborder="0" src="Demo-MainFrame01.jsp?type=1" style="width:100%;height:100%;"></iframe>'
});
});
</script><body>
<div id="tt"></div>
</body>
我在页面加载的时候加入了二个TAB.都是跳转到Demo-MainFrame01.jsp,Demo-MainFrame01.jsp里面嵌套了几个DIV,出来的效果是,只有 tab1的里面的内容格式显示正确。tab2里面的DIV宽度就变的很窄,出现错位。当我右键刷新下,DIV的格式又回复正常,请各位能指点下怎么解决?谢谢啊!
$('#tt').tabs();
$('#tt').tabs('add', {
title: 'tab1 ',
closable: true,
content: '<iframe scrolling="yes" frameborder="0" src="Demo-MainFrame01.jsp?type=0" style="width:100%;height:100%;"></iframe>',
selected: true
}); $('#tt').tabs('add', {
title: ''tab2 ',
closable: true,
content: '<iframe scrolling="yes" frameborder="0" src="Demo-MainFrame01.jsp?type=1" style="width:100%;height:100%;"></iframe>'
});
});
</script><body>
<div id="tt"></div>
</body>
我在页面加载的时候加入了二个TAB.都是跳转到Demo-MainFrame01.jsp,Demo-MainFrame01.jsp里面嵌套了几个DIV,出来的效果是,只有 tab1的里面的内容格式显示正确。tab2里面的DIV宽度就变的很窄,出现错位。当我右键刷新下,DIV的格式又回复正常,请各位能指点下怎么解决?谢谢啊!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货