透明叠加层应为灰色,并应包含一个进度条,该进度条会阻止使用它在浏览器中覆盖的div,直到进度条完成为止。我也希望不使用闪光灯来执行此操作。我该怎么做?
div.transparent_lists
{
clear:both;
border-top-style:solid;
border-bottom-style:solid;
opacity:0.6;
filter:alpha(opacity=60);
border-bottom-color: #A9A9A9;
border-top-color: #A9A9A9;
border-bottom-width: thin;
border-top-width: thin;
z-index: 1000;
display: block;
height: 20px;
position: absolute;
}
最佳答案
您可以执行以下操作:
<div id="parent" style="position:relative;height:200px;width:200px;overflow:hidden;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam
<div id="overlay" style="position:absolute;top:0px;left:0px;width:200px;height:200px;background-color:#ccc;opacity:.8;padding-top:90px;text-align:center;">
Content for overlay here
</div>
</div>
您可以根据需要隐藏/显示overlay元素。
关于javascript - 我正在尝试在包含 Material 的div上添加透明覆盖,我该怎么做?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12963073/