Skip to content

z-index

命名规律:使用字母 z

class名
样式值
z-10
z-index:10;
z--10
z-index:-10;
z-auto
z-index:auto;

使用示例

01
02
03 z-10
04 z-1
05 z-0
vue
<div class="">
  <div class="">01</div>
  <div class="">02</div>
  <div class="">03 z-10</div>
  <div class="">04 z-1</div>
  <div class="">05 z-0</div>
</div>
<div class="">
  <div class="">01</div>
  <div class="">02</div>
  <div class="">03 z-10</div>
  <div class="">04 z-1</div>
  <div class="">05 z-0</div>
</div>