在olat中所有的图标或css布局基本都属于主题的管理(theme)
相关内容可以查看 olat 的主题文档
首先,在设置 DefaultNavElement时指定iconCSSClass 参数。例如:
origNavElem = new DefaultNavElement("xfire", "test demo", "o_site_xfire");第二步,在 theme\default\all\olat.css 中找到 /* site icons in nav */标签,并在其后面添加自己的样式图片。例如:
#b_nav_main li.o_site_xfire div { background-image: url(../images/olat/xfire.png) }
第三步,在指定的目录下添加你的图片。如上面的例子,我需要添加 xfire.png图片