[英]Relatively positioned elements in scrollable absolutely positioned div “lag behind” on scroll
[英]How to put absolutely positioned DIV behind the SPAN or relatively positioned DIV?
是否可以将绝对定位的DIV放在SPAN或相对定位的DIV后面? 在我看来,z-index不会影响SPAN等。
使用span { display: block; }
span { display: block; }
。
我认为这会将span
置于绝对定位的div上方。 并且还应该定义z-index
。 另外,我通常不使用position: relative
来将div
放置在其他div's
下面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.