玻璃窗格 [英] Glass pane all over the page
本文介绍了玻璃窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无论缩放/滑动事件/平台/浏览器{mobile / desktop}如何,在HTML网页上是否有一个简单的方法可以使用玻璃窗格?
Is there an easy way to have a "glass pane" all over the HTML page, regardless of zoom/slide events/platform/browser{mobile/desktop}?
easy我的意思是类似纯CSS支持,而不是插件。
By "easy" I mean something like pure CSS support, not a plug-in.
后备:插件通知也可能是有用的。
Fallback: plug-in advice might be useful as well.
感谢
推荐答案
如果你只是一层一层, this:
If you just mean a layer on top of everything, try this:
#top-layer {
position: fixed;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
top: 0;
left: 0;
}
您可以设置 opacity:0.5;
如果您希望半透明。
You can set opacity: 0.5;
if you want it semi-transparent.
这篇关于玻璃窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文