太大的蓝色 select 区域

Too big blue select area

我的问题是蓝色 select 区域太大,导致当我将光标移到顶部文本时,悬停 属性 不起作用。那里出现一个文本光标,但应该出现一个光标指针。

我尝试在下面的文本中添加 z-index: -1;user-select: none; 属性, 但它没有帮助。

<html>
    <head>
        <style>
            .selectionlist
            {
                color: #777777;
                font-weight: 400;
            }

            .selectionlist ol
            {
                padding: 0;
                margin: 0;
                list-style-type: none;
            }

            .selectionlist ol a
            {
                color: #777777;
                text-decoration: none;
            }

            .selectionlist ol > li
            {
                display: inline-block;
            }

            .selectionlist ol > li::before
            {
                content: "/ ";
            }

            .selectionlist ol > li:first-child:before
            {
                content: "";
            }

            .selectionlist ol > li > a:hover, .selectionlist ol > li:last-child > a:hover
            {
                color: #00B4FF;
            }

            .selectionlist ol > li:last-child > a
            {
                color: #00B4FF;
                font-weight: 600;
            }
            .hea
            {
                margin-top: -10px;
                display: flex;
                align-items: center;
            }
            .tg
            {
                margin-right: 10px;
                font-size: 50px;
                color: #00B4FF;
                font-weight: 600;
            }
            #name
            {
                display: inline-block;
                font-size: 50px;
            }
            .ad
            {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 70px;
                height: 30px;
                border-radius: 20px;
                box-sizing: border-box;
                border: 2px solid #DDD;
                color: #DDD;
                cursor: pointer;
                letter-spacing: 2px;
                padding: 5px;
                font-weight: 600;
                margin-left: 15px;
                user-select: none;
            }
            .ad:hover
            {
                /*transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out;*/
                color: #00B4FF;
                border-color: #00B4FF;
            }

            .number
            {
                user-select: none;
                color: #00B4FF;
                font-size: 20px;
                margin-left: 10px;
            }
            .number
            {
                user-select: none;
                color: #00B4FF;
                font-size: 20px;
                margin-left: 10px;
            }
        </style>
    </head>
    <body>
        <div class="selectionlist">
            <ol>
                <li><a href="#">TEXT</a></li>
                <li><a href="#">TEXT</a></li>
                <li><a href="#">TEXT</a></li>
                <li><a href="#">TEXT</a></li>
            </ol>
        </div>
        <div class="hea">
            <span class="tg">TEXT</span> 
            <div id="name">TEXT</div>
            <div class="ad">TEXT</div>
            <div class="number">TEXT</div>
        </div>
    </body>
</html>

增加 .selectionlist 元素的 z-index 使其位于 .hea 元素之上。下面的代码,注意要添加的两行

.selectionlist {
  color: #777777;
  font-weight: 400;
  /* Add these two to increase the z-index of the list with links */
  position: relative;
  z-index: 1;
}

.selectionlist ol {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.selectionlist ol a {
  color: #777777;
  text-decoration: none;
}

.selectionlist ol>li {
  display: inline-block;
}

.selectionlist ol>li::before {
  content: "/ ";
}

.selectionlist ol>li:first-child:before {
  content: "";
}

.selectionlist ol>li>a:hover,
.selectionlist ol>li:last-child>a:hover {
  color: #00B4FF;
}

.selectionlist ol>li:last-child>a {
  color: #00B4FF;
  font-weight: 600;
}

.hea {
  margin-top: -10px;
  display: flex;
  align-items: center;
}

.tg {
  margin-right: 10px;
  font-size: 50px;
  color: #00B4FF;
  font-weight: 600;
}

#name {
  display: inline-block;
  font-size: 50px;
}

.ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 30px;
  border-radius: 20px;
  box-sizing: border-box;
  border: 2px solid #DDD;
  color: #DDD;
  cursor: pointer;
  letter-spacing: 2px;
  padding: 5px;
  font-weight: 600;
  margin-left: 15px;
  user-select: none;
}

.ad:hover {
  /*transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out;*/
  color: #00B4FF;
  border-color: #00B4FF;
}

.number {
  user-select: none;
  color: #00B4FF;
  font-size: 20px;
  margin-left: 10px;
}

.number {
  user-select: none;
  color: #00B4FF;
  font-size: 20px;
  margin-left: 10px;
}
<div class="selectionlist">
  <ol>
    <li><a href="#">TEXT</a></li>
    <li><a href="#">TEXT</a></li>
    <li><a href="#">TEXT</a></li>
    <li><a href="#">TEXT</a></li>
  </ol>
</div>
<div class="hea">
  <span class="tg">TEXT</span>
  <div id="name">TEXT</div>
  <div class="ad">TEXT</div>
  <div class="number">TEXT</div>
</div>