[英]z-index not working in this page
在此頁面底部,我希望黑匣子處於這樣的位置。 在此處輸入圖片說明
請告訴快速解決此問題的方法
#responsive_single_image_description {
position: absolute;
background-color: rgba(0, 0, 0, 0.5);
color: white;
bottom: 0px;
padding: 4px;
text-align: right;
max-width: 90%;
left: -14px;
但是以某種方式隱藏了它,並且z-index無法正常工作。
在要覆蓋的元素中添加CSS
z-index:9999!重要; 職位:相對;
使用z-index時,相對位置非常重要
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.