您的位置:首页 > Web前端 > JavaScript

关于修改extjs 树 前面的图标的问题,extjs 默认的是 文件夹的图标样子

2010-06-28 17:02 309 查看
icon : String
The path to an icon for the node. The preferred way to do this is to use the cls or iconCls attributes and add the icon via a CSS background image.
这个是直接指定一个图片路径

iconCls : String
A css class to be added to the nodes icon element for applying css background images
这个是制定图片的CSS
模拟代码
{
id:'treeid',
text : '我是根目录'
icon : 'xxx/xxxx/xx/d.gif'//或者 iconCls : 'root'  指定已经定义好的root样式
}
.root {
background-image:url(../shared/icons/fam/cog.png) !important;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐