通过CSS样式来修改ExtJS:TreePanel的小图标
(编辑:jimmy 日期: 2024/11/18 浏览:3 次 )
写在html<head>标签里面,
复制代码代码如下:
<style type="text/css">
.x-tree-node-collapsed .x-tree-node-icon {
background:transparent url(web/css/images/default/tree/1.gif);
}
.x-tree-node-expanded .x-tree-node-icon {
background:transparent url(web/css/images/default/tree/drop-no.gif);
}
.x-tree-node-leaf .x-tree-node-icon{
background:transparent url(web/css/images/default/tree/2.gif);
}
</style>
复制代码代码如下:
<style type="text/css">
.x-tree-node-collapsed .x-tree-node-icon {
background:transparent url(web/css/images/default/tree/1.gif);
}
.x-tree-node-expanded .x-tree-node-icon {
background:transparent url(web/css/images/default/tree/drop-no.gif);
}
.x-tree-node-leaf .x-tree-node-icon{
background:transparent url(web/css/images/default/tree/2.gif);
}
</style>
下一篇:页面在360浏览器下显示不正常的兼容性问题