亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

一個沒有層疊上下文的元素如何比有的元素 z-index 更大?

一個沒有層疊上下文的元素如何比有的元素 z-index 更大?

qq_笑_17 2018-09-12 10:10:25
          <thead id="fixed_table_title" class="table-head">                 <tr>                      <th>Prescriber</th>                 </tr>               </thead>                                <tbody id="fixed-body" class="table-body" style="transition: -webkit-transform 0s ease-out; transform: translate3d(0px, -24.808px, 0px);">                 <tr>                     <td>商品1</td>                 </tr>               <tr>                   <td>商品2</td>               </tr>               <tr>                   <td>商品3</td>               </tr>               <tr>                   <td>商品4</td>               </tr>                  </tbody>                              #fixed_table_title{       position: relative !important;        z-index: 10000 !important;   }   #fixed-body{           z-index: 100 !important;position: relative !important;   }                  試圖給 t-head 添加 transform 屬性或其他的導致其產生 層疊上下文的屬性,發現改變 t-body transform Y軸屬性移動其時 t-head 還是會被 t-body覆蓋。                                              
查看完整描述

1 回答

?
Qyouu

TA貢獻1786條經驗 獲得超11個贊

同一層級下,根據由順序和z-index值大小決定;不同層級下,由父級順序和z-index決定。


查看完整回答
反對 回復 2018-10-06
  • 1 回答
  • 0 關注
  • 560 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號