问题
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