标题上窜后隐藏了
调整高度解决
加入配置
tabBar: {
height: 25, //tab bar高度
defaults: {
height: 23 //tab 里的title的高度
}
},
tabpanel
//选项卡
var tabs1 = Ext.createWidget('tabpanel', {
renderTo: "tabPanel",
activeTab: 1, //指定默认的活动tab
width: 600,
height: 120,
plain: true, //True表示tab候选栏上没有背景图片(默认为false)
enableTabScroll: true, //选项卡过多时,允许滚动
defaults: { autoScroll: true },
tabBar: {
height: 25, //tab bar高度
defaults: {
height: 23 //tab 里的title的高度
}
},
items: [{
id: "indexTab",
title: '首页 ',
html: "欢迎使用本系统"//,
//items:[{xtype:'button',text:'按钮'}],
//closable: true //这个tab可以被关闭
}]
});
本文详细介绍了如何通过调整TabBar高度和优化选项卡布局,解决UI设计中的常见问题,包括调整tabBar和title的高度,以及实现平滑的选项卡切换效果。
3977

被折叠的 条评论
为什么被折叠?



