你想要这样的底线文字不重叠以上的文字。您可以将行高
添加到上述文本中,
将line-height:60px;
添加到h1标记
null
body{
background:#3c52b0;
color:#fff;
}
h1{
font-size:50px;
line-height: 60px;
}
.bottom{
background-color: #2bd650;
background-size:auto;
font-weight: bold;
font-style: italic;
}
<h1>company<br> that increases<br> you <span class="bottom">bottom-line<span><h1>