[英]Can I have an XUL panel without a shadow in my Firefox extension?
XUL panels in a Firefox extension overlay always come with a shadow for free. Firefox 扩展覆盖层中的 XUL 面板始终免费提供阴影。 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
http://img124.imageshack.us/img124/7766/shadowj.png
Use the following CSS statement:使用以下 CSS 语句:
-moz-window-shadow: none; -moz 窗口阴影:无;
See also Firefox internal CSS stylesheet (mac version) for its bookmark panel.另请参阅 Firefox 内部 CSS 样式表(mac 版)的书签面板。
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.
我不得不说不熟悉 Vista,但可以肯定地说它是特定于操作系统的。
You can set the background color to transparent via css:您可以通过 css 将背景颜色设置为透明:
background-color: transparent;背景颜色:透明;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.