Why doesn't background-color works for my xul app?

不想你离开。 提交于 2019-12-12 04:22:47

问题


Running this xul app:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window width="400" height="300"
    style="background-color:transparent;"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

    <label value="MAIN WINDOW"/>

</window>

my window background is showing up. Is there a way to make it transparent (without get rid of the chrome://global/skin/)?


回答1:


On Linux and Windows, toolkit also themes windows with -moz-appearance: window; so you also need to override that with -moz-appearance: none; if you want your window to be transparent.



来源:https://stackoverflow.com/questions/5171599/why-doesnt-background-color-works-for-my-xul-app

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