JQERY EasyUI Tabs 选项卡 自适应浏览器宽度高度 解决方案

<script type="text/javascript">
$(window).resize(function () {
$('#tt').tabs({
width: $("#tt").parent().width(),
height: "auto"
});
})
$(function() {
$('#tt').tabs({
width: $("#tt").parent().width(),
   height: "auto"
});
});
</script>


<div id="tt">
<div title="标题1" style="padding:10px;" cache="false">
test11111111111111111111111111111111111111111111111111111111111111111111111111

</div>

<div title="标题2" style="padding:10px;" cache="false" href="/EMS01/IMG_List"></div>
<div title="标题3" style="padding:10px;" cache="false" href="/EMS01/EXG_List"></div>
</div>

待验证 动态数据加载的时候

猜你喜欢

转载自www.cnblogs.com/snowhite/p/10106593.html