如何使用CSS删除<u>
标记中包含的下标文本中的下划线?
这不起作用。
u sub {
text-decoration: none;
}
&#13;
<u>The text should be underlined,<sub>but not the subscript</sub></u>
&#13;
答案 0 :(得分:7)
您可以将sub
设置为display: inline-block;
u sub {
display: inline-block;
}
<u>The text should be underlined,<sub>but not the subscript</sub></u>