我有以下HTML和CSS片段,我希望"!"不要被下划线覆盖,但它还是被覆盖了。我做错了什么?
p {
color:red;
text-decoration:
underline;
font-size: 1.2em;
}
span.none {
text-decoration: none;
}
<p class="p">Click the thumb<span class="none">!</span></p>