Can I have an XUL panel without a shadow in my Firefox extension?

丶灬走出姿态 提交于 2019-12-07 02:19:52

问题


XUL panels in a Firefox extension overlay always come with a shadow for free. How can I remove this shadow?

Example code for the shadow effect I don't want:

<popupset>
    <panel id="popuppanel" width="500" noautohide="true">
        <vbox>
            <label value="test"/>
            <label value=""/>
            <label value=""/>
            <label value=""/>
        </vbox>
    </panel>
</popupset>

And a screenshot:

Example image of shadow effect I don't want. http://img124.imageshack.us/img124/7766/shadowj.png


回答1:


Use the following CSS statement:

-moz-window-shadow: none;

See also Firefox internal CSS stylesheet (mac version) for its bookmark panel.




回答2:


I think that is part of the OS's doing. Like there is also a shadow on menus in eg. notepad. Not familiar with Vista I have to say, but it's safe to say that it's OS specific.




回答3:


You can set the background color to transparent via css:

background-color: transparent;



来源:https://stackoverflow.com/questions/623609/can-i-have-an-xul-panel-without-a-shadow-in-my-firefox-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!