0
我有一個列表,我想添加一個邊框到它。但是當我這樣做時:我不能把邊框放在我的ul
<ul style="list-style-type: none;padding:3px;margin:3px; ">
<li style="border:1px dashed; width: 60px; float:left; height: 70px; margin:6px;"></li>
<li style="border:1px dashed; width: 60px; float:left; height: 70px; margin:6px;"></li>
<li style="border:1px dashed; width: 60px; float:left; height: 70px; margin:6px;"></li>
</ul>
li元素看起來在ul的邊界之外。 這段代碼有什麼問題,或者我只是使用了錯誤的技術?
謝謝!它的工作:D –
完成,對不起,我是一個在stackoverflow noob。 –