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