[英]CSS tooltip not showing on top of all elements (no javascript)
如何在所有HTML元素上方顯示工具提示?
<div class="wrapper">Lorem ipsum dolor
<div class="tooltip">Lorem ipsum dolor</div>
</div>
好的,我在您的HTML DIV中添加了4個新ID
<div class="wrapper" id="test1">Lorem...
<div class="wrapper" id="test2">Lorem...
<div class="wrapper" id="test3">Lorem...
<div class="wrapper" id="test4">Lorem...
並添加了以下新CSS:
#test1 {
z-index:40;
}
#test2 {
z-index:30;
}
#test3 {
z-index:20;
}
#test4 {
z-index:10;
}
演示在這里: jsFiddle
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.