做出来后的效果如下:

用到的图:

把图片添加到项目中,
在.jsp页面的ext-all.css定义后,添加
<STYLE type="text/css">
.x-tab-strip-top .x-tab-strip-active .x-tab-right {
background-position: 0 0;
background-image: url(<%=request.getContextPath()%>/images/tabs-sprite.jpg);
}
.x-tab-strip-top .x-tab-strip-active .x-tab-left {
background-position: right -300px;
background-image: url(<%=request.getContextPath()%>/images/tabs-sprite.jpg);
}
.x-tab-strip-top .x-tab-strip-active .x-tab-strip-inner {
background-position: 0 -150px;
background-image: url(<%=request.getContextPath()%>/images/tabs-sprite.jpg);
}
</STYLE>
即可.
本文介绍如何通过修改CSS样式来定制ExtJS中的Tab面板样式,包括设置背景图片和位置等。
301

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



