开发者

styling a menulist in xul

开发者 https://www.devze.com 2023-03-17 10:28 出处:网络
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.

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

精彩评论

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