我span在td. td有一个带有 CSS 的类来设置to text-decoration,underline而span设置text-decorationto none。我希望里面的文字span没有下划线,但由于某种原因它是。为什么?
.u {
text-decoration: underline;
}
.no-u {
text-decoration: none !important;
}
<table>
<tr>
<td class="u">
<span class="no-u" style="text-decoration: none !important;">My Text</span>
</td>
</tr>
</table>