Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一组报告过滤器面板,我想让它们可选地可见,一次一个。但是,当我将面板的显示属性从“无”设置为“阻止”时,可以理解的是,它会将其他内容向下推。如何将面板浮动在其他内容上?
style="z-index: X; position: relative;"
其中 X 是一个大于所有其他 z 索引的数字,即 256。如果您没有指定任何值,则 1 应该足够高。
使用绝对定位或将所需的元素隐藏在其下方。如果您将在每次更改之间进行服务器回发,您可以使用“Visible”属性来控制面板是否首先呈现为 html。