1.twaver.controls.TabPane.getHorizontalAlign//twaver.controls.TabPane.setHorizontalAlign(v)
right:右对齐。
center:中间对齐。
justify: 填充对齐,使得一行上每个文字的间隔相同。
inherit:继承于父亲的对齐方式。 更多的对齐方式可以参考CSS中的text-align样式
2.twaver.controls.TabPane.setSelectBackground(v);//twaver.controls.TabPane.getSelectBackground(v);
设置/获取 选中的选项卡的背景颜色。例如,
tabPane.setSelectBackground(‘#f1f1f1’)。
3.twaver.controls.TabPane.setTabBackground(v);//twaver.controls.TabPane.getTabBackground(v);
设置/获取 tab页的背景颜色。例如:
tabPane.setTabBackground(‘#f1f1f1’)。
4.twaver.controls.TabPane.setTabGap
();
设置选项卡之间的间距;例如,tabPane.setTabGap(2)。
5.twaver.controls.TabPane.setTabHeight(v); v nuber
设置选项卡的高度;例如,tabPane.setTabHeight(30);
6.twaver.controls.TabPane.setTabOrientation(v);
设置选项卡所在位置,‘top’,'bottom'.
7.twaver.controls.TabPane.setTabRadius
(v);
设置选项卡的圆角,v number 例如,tabPane.setTabRadius(6);
以上为几种常用方法,更多设置方式,见API文档:http://doc.servasoft.com/uploads/twaver-html5-5.0.3-api/classes/twaver.controls.TabPane.html