<div class="htmlarea"> <textarea id="runcode67217"> <title>li的簡單應用</title> <style type="text/css"> *{margin:0;padding:0;} #test { width:300px; margin:5px; } #test ul li { margin:3px;/* for IE5.x*/ margin/**/:1px; list-style-type:none; font:normal normal normal ?px/2em helvetica,Arial, verdana; border:1px #004080 solid; background: #fefefe url('http://bbs.51js.com/images/smilies/icon1.gif') no-repeat left center; padding-left:20px; } </style> <div id="test"> <ul> <li>測試列表的 </li> <li>測試列表的 </li> <li>測試列表的 </li> <li>測試列表的 </li> </ul> </div> </textarea><br><input onclick="runEx('runcode67217')" type="button" value="运行代码"> <input onclick="doCopy('runcode67217')" type="button" value="复制代码"> <input onclick="doSave(runcode67217)" type="button" value="保存代码">[Ctrl+A 全選 註:<a href="/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能執行</a>]</div>