身体不透明影响整个页面? [英] Body opacity affecting whole page?

查看:80
本文介绍了身体不透明影响整个页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在弹出窗口。我做了一切,但是当我想使任何背后的不透明度(我使用body标签)到0.6,弹出的不透明度也改变了。我如何做到这一切,除了弹出窗口的不透明度被删除? - 提前感谢:)

i am making a popup. I have everything done, but when i want to make the opacity of anything behind it (i use the body tag) to 0.6 , the popup's opacity is changed too. How do i make this to where everything but the popup's opacity is dropped? - Thanks in advance :)

推荐答案

尝试使用rgba代替opacity:

Try using rgba instead of opacity:

background-color:rgba(0,0,0,0.5);

绿色,蓝色,Alpha透明度值

It's: red, green, blue, alpha transparency values

这篇关于身体不透明影响整个页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆