这两段HTML那个好?
<ul><li>aa</li>
<ul>
<li>aa-1</li>
<li>aa-2</li>
<ul>
<li>aa-1</li>
<li>aa-2</li>
</ul>
</ul>
</ul>
<ul>
<li>
aa
<ul>
<li>aa-1</li>
<li>aa-2
<ul>
<li>aa-1</li>
<li>aa-2</li>
</ul>
</li>
</ul>
</li>
</ul>
那个更好? ul标签的子标签只能是li 别整别的{:10_277:} 自己实测试一下,看哪种效果好 就第一个 从美观和逻辑分析角度都是第一个好!{:10_269:} ul里理论上,只建议放li标签,而且应该如下写才更好
<ul>
<li>aa</li>
<li>
<ul>
<li>aa-1</li>
<li>aa-2</li>
<li>
<ul>
<li>aa-1</li>
<li>aa-2</li>
</ul>
</li>
</ul>
</li>
</ul>
页:
[1]