0
我有text-decoration: underline
在a
,我需要保持它那樣。但是我也試圖從僞元素中刪除下劃線,覆蓋它與text-decoration: none !important;
似乎沒有效果。可以做些什麼呢?如何刪除文字修飾:從僞元素下劃線?
http://codepen.io/anon/pen/yMzJoZ
a {
text-decoration: underline;
}
a:before {
content: '#';
text-decoration: none !important;
}
<ul>
<li>
<a href="#">asdf</a>
</li>
</ul>