javascript - -moz-win-borderless-glass 有效吗?

标签 javascript firefox css

所以,I found out that在 Firefox 中,我可以使用 CSS 的 -moz-appearance 使元素具有 Windows Aero 效果。但是,它似乎不起作用。当我点击按钮时,什么也没有发生。我在那里做错了什么吗?谢谢。

http://jsfiddle.net/DerekL/XNN5g/

最佳答案

CSS Tricks 中所述

The appearance property is used to display an element using a platform-native styling based on the users' operating system's theme.

在网站元素中使用 -moz-win-borderless-glass 的问题在于,该元素将至少在保存网站内容的 chrome 元素的背景下组合,默认情况下为白色。因此它不会显示为具有玻璃样式,因为只有组合底部的元素(包括 chrome)可以显示此行为。

您可以通过 Stylish 等插件更改 chrome 元素的外观,但这是用户必须安装的东西。如果相应地设置 -moz-appearance 属性,Chrome 元素可以具有玻璃样式,包括保存网站内容的整个元素。

关于javascript - -moz-win-borderless-glass 有效吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11025292/

相关文章:

javascript - 使用带有 append() 的淡出方法

Javascript、Websockets 和 XMPP 客户端。如何让它们协同工作?

javascript - 滚动时让一个div粘在左边

jquery - 使用 xhrFields 时状态代码 = 0 : { withCredentials: true } in jQuery $ajax call with Firefox

javascript - 如何在页面上执行函数?

linux - 更改 Firefox 扩展目录

javascript - 元素的宽度在 javascript 中占怪癖模式?

html - Joomla K2 中的 Iframe 调整大小

javascript - 将下拉列表更改为其原始状态

javascript - &amp 代码 javascript 不会被 & 替换