摘要:
html: <div id="runcon"> <ul class="show"> </ul> </div>css:<style type="text/css">#runcon{margin:0 auto;width:400px;overflow:hidden;background:#ffffff;border:1px solid #d6d6d6;height:100px;}#runcon ul{list-style-type:none;position:relative;m 阅读全文
摘要:
<div style="width:500px;border:1px solid #336699;overflow:hidden;white-space:nowrap;text-overflow:ellipsis"> overflow:hidden;内容会修剪,其余内容不可见; white-space: text-overflow:超出的内容以省略号显示; width必须定义; </div> 阅读全文