0
我想要一个Browsertoolbar中的图标 - 工作。请查看图片一个看不到自定义工具栏图标
http://s18.postimage.org/njeyj7ekn/Neues_Bild.png
但为什么我不能看到图标选择框中的图标?
http://s18.postimage.org/pzgrx1wnb/Neues_Bild_1.png
我只得到了工具栏图标。
这里是我的代码片段:
XUL:
<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="megxbar-ide-button" label="&MegxBarSidebar.label;" class="toolbarbutton-1 chromeclass-toolbar-additional" tooltiptext="&MegxBarSidebar.label;" observes="viewSidebar_MegxBar" />
</toolbarpalette>
CSS:
@namespace url('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul');
#megxbar-ide-button {
list-style-image: url(chrome://MegxBar/skin/megxbar24.png);
}
toolbar[iconsize="small"] #megxbar-ide-button {
list-style-image: url(chrome://MegxBar/skin/megxbar16.png);
}
而且我有一个问题。我怎么能在图片编号1的位置上默认设置图标?我的意思是,我启动浏览器并在安装后首次重新启动后看到扩展的图标。