0
このリンクを参照してください。 https://codepen.io/wbeeftink/pen/dIaDH。ズームインまたはズームインすると、タグの下部に余分な線が突き出ていることがわかります。スクリーンショットを参照してください。 CSSカスタムタグの形状 - 余分な行
誰かが私がこの固定する方法を教えてくださいでした。または、そのようなタグを作成する別の方法はありますか? これは私がleft: 100%
にright: 0
から.tag::after
の
HTML
<span class="tag">HTML</span>
CSS
.tag {
background: #eee;
border-radius: 3px 0 0 3px;
color: #999;
display: inline-block;
height: 26px;
line-height: 26px;
padding: 0 20px 0 23px;
position: relative;
margin: 0 10px 10px 0;
text-decoration: none;
-webkit-transition: color 0.2s;
}
.tag::before {
background: #fff;
border-radius: 10px;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
content: '';
height: 6px;
left: 10px;
position: absolute;
width: 6px;
top: 10px;
}
.tag::after {
background: #fff;
border-bottom: 13px solid transparent;
border-left: 10px solid #eee;
border-top: 13px solid transparent;
content: '';
position: absolute;
right: 0;
top: 0;
}