开发者

styling a menulist in xul

Is there a way to style a menulist in XUL?

I'm using this code but the image is appearin开发者_开发问答g inside the dropdownlist and keeping the original style of the arrow.

menulist,menupopup{ 
    -moz-appearance: none !important;
    list-style-image: url("chrome://myExt/skin/images/lang.png") !important;

}

Thanks in advance,


What you are apparently attempting to style isn't the <menulist> tag itself but the anonymous <dropmarker> tag inside it. This will work:

menulist > dropmarker {
  -moz-appearance: none;
  border-style: none;
  list-style-image: url("chrome://myExt/skin/images/lang.png");
}

For more information on anonymous nodes see XUL implicit elements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜