讓表格一行中的文字過(guò)多時(shí)自動(dòng)變成省略號(hào)
Posted on 2006-11-10 14:26 semovy 閱讀(689) 評(píng)論(0) 編輯 收藏 所屬分類(lèi): CSS式樣<style>
#DIV1{width:200px;height:90px;background-color:#87CEEB;padding:8px;overflow:hidden; text-overflow:ellipsis;white-space:nowrap; }
</style>
<center><div id=DIV1>讓表格一行中的文字過(guò)多時(shí)自動(dòng)變成省略號(hào)讓表格一行中的文字過(guò)多時(shí)自動(dòng)變成省略號(hào)</div>
如內(nèi)容超出單元格,則隱藏
style="TABLE-LAYOUT: fixed"
#DIV1{width:200px;height:90px;background-color:#87CEEB;padding:8px;overflow:hidden; text-overflow:ellipsis;white-space:nowrap; }
</style>
<center><div id=DIV1>讓表格一行中的文字過(guò)多時(shí)自動(dòng)變成省略號(hào)讓表格一行中的文字過(guò)多時(shí)自動(dòng)變成省略號(hào)</div>
如內(nèi)容超出單元格,則隱藏
style="TABLE-LAYOUT: fixed"