为什么背景颜色不适用于我的XUL应用程序? [英] Why doesn't background-color works for my xul app?
本文介绍了为什么背景颜色不适用于我的XUL应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行此xul应用程序:
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>
我的窗口背景显示。是否有一种方法使它透明(没有摆脱 chrome:// global / skin /
)?
my window background is showing up. Is there a way to make it transparent (without get rid of the chrome://global/skin/
)?
推荐答案
在 Linux 和 Windows ,工具箱还包含 -moz-appearance:window;
的主题窗口,因此您还需要使用 -moz-appearance:none;
如果你希望你的窗口是透明的。
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.
这篇关于为什么背景颜色不适用于我的XUL应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文