如何使css文本-装饰覆盖工作?
ul > li { text-decoration: none;}ul > li.u { text-decoration: underline;}ul > li > ul > li { text-decoration: none;}ul > li > ul > li.u { text-decoration: underline;}
<ul> <li>Should not be underlined</li> <li class="u">Should be underlined <ul> <li>Should not be underlined</li> <li class="u">Should be underlined</li> </ul> </li></ul>
慕田峪4524236
明月笑刀无情