我正在使用具有线性渐变的背景图像来创建高亮文本效果,但这会导致不需要的底部边框:
.fancy-underline {
text-decoration: none;
background-image: -webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.7)),to(rgba(255,255,255,.7))),-webkit-gradient(linear,left top, left bottom,from(#91c678),to(#91c678));
background-image: linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.7)),linear-gradient(#91c678,#91c678);
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 100% 50%;
}
<p><span class="fancy-underline">here is some fancy underline</span></p>
我在调试器的计算样式下看不到任何可能导致这种情况的东西,所以我认为这一定是我的线性渐变的问题。谁能指出我正确的方向?