如何将一个Div放在具有透明背景的另一个Div上? [英] How to put a Div on another Div with transparent background?
本文介绍了如何将一个Div放在具有透明背景的另一个Div上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将具有透明背景的div(1)放在另一个Div(2)的顶部。因为我想使div(2)包含的所有元素都禁用。因此,如果我将div(1)放在div(2)之上,则div(2)内的元素将不再是单击器。
I want to put a div(1) with transparent background on the top of another Div(2). Because I want to make all the element that div(2) contains disable. so, If i will put div(1) on top of div(2) then elements that are inside the div(2) will not be clicker anymore.
推荐答案
您可以在内容上添加透明的覆盖层,如下所示:
You can add a transparent overlay over your content, like so:
http://jsfiddle.net/andresilich/WHEK3/1/
这篇关于如何将一个Div放在具有透明背景的另一个Div上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文