gpt4 book ai didi

css - UpdateProgress 的 CSS 样式问题

转载 作者:太空宇宙 更新时间:2023-11-03 19:03:16 25 4
gpt4 key购买 nike

我在 Asp.net 中使用更新面板。我有更新进度,为此我设置了一个 DIV 并为其设置了一个 CSS。问题是当我调用它时,它会显示进度条,但我可以滚动窗口。我需要将其设置为模式(显示进度条时无法选择)。可以吗

  .Progressbar
{
background-position: center center;
background-color:White;
filter: alpha(opacity=75);
opacity: 0.7;
background-image: url('../images/loading.gif');
background-attachment:fixed;
position:absolute;
background-repeat: no-repeat;
/*z-index:0;*/
z-index:100;
width: 100%;
height: 100%;
top:0px;
right:0px;
botton: 0px;
left:0px;
overflow:hidden;}

这是我在更新进度中使用的 DIV 标签的 CSS。如果页面包含的数据超过屏幕分辨率的高度,它允许我看到这些内容。我怎样才能改变它,以便当显示进度条时,没有任何内容是可选的,即使我们滚动,我们这个 DIV 将保持在相同的位置(WINDOW)而不是滚动。

See the image below

我怎样才能改变这个问题???

最佳答案

给你的主 div(包含所有内容的 div)一个 id 并将你的主 div 的 z-index 设置为 -1 并给 z- index:0 到你的 body ,同时更新进度并在完成时将 z-index 更改为 1

关于css - UpdateProgress 的 CSS 样式问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11308807/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com