为什么 link 区域的高度比文本大很多?

Why is the link region much larger in height than the text?

出于某种原因,我的文本的可点击区域的高度比 div 和 'a' 标签设置的高度大得多。如果您 运行 代码片段并将鼠标悬停在文本下方,您会看到可点击区域比 div 和 'a' 标签大得多。有什么想法吗?

谢谢。

.title {

  display: flex;
  position: absolute;
  background-color: red;
  z-index: 6;
  height: 7em;
  width: 20em;
  bottom: 11.25vh;
  text-align: left;
}

.title a {

  font-size: 108px;
  line-height: 108px;
  text-decoration: none;
  color: #000;
  font-family: 'Inknut Antiqua', serif;
 }
<link href="https://fonts.googleapis.com/css?family=Inknut+Antiqua" rel="stylesheet">

<div class="title">
  <a href="javascript:;">Work</a>
</div>

这是因为您设置的行高实际上比默认行高小很多。 (如果您删除 line-height: 108px;,您会发现它更大)。

如果您不希望 link 超过 div 尺寸,您可以将 overflow: hidden 添加到 .title div。

.title {
  display: flex;
  position: absolute;
  background-color: red;
  z-index: 6;
  height: 7em;
  width: 20em;
  bottom: 11.25vh;
  text-align: left;
  
  overflow: hidden;
}

.title a {
  font-size: 108px;
  line-height: 108px;
  text-decoration: none;
  color: #000;
  font-family: 'Inknut Antiqua', serif;
}
<link href="https://fonts.googleapis.com/css?family=Inknut+Antiqua" rel="stylesheet">

<div class="title">
  <a href="http://www.google.com">Work</a>
</div>