电竞比分网-中国电竞赛事及体育赛事平台

分享

DIV 內(nèi)容 溢出

 xnet 2006-07-29

<style tyep="text/css">
div {margin:5px 0;overflow:hidden;width:200px;}

div.a {border:1px solid red; text-overflow:ellipsis;white-space:nowrap;}
div.b {border:1px solid green; text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap;}
div.c {border:1px solid blue; text-overflow:ellipsis;-o-text-overflow:ellipsis;}


</style>
<div class="a">test somthing here.test somthing here.test somthing here.test somthing here.test somthing here.</div>
<div class="b">test111 1111111111111112133435te st1111111111111111112133435 test111111 111 111111 11121 334353 5345345</div>

<div class="c">test1111111111111111112133435test1111111111111111112133435test111111111111111111213343535345345</div>

<div class="c">test 11111 1111111 1111112133 435te t111 111111 1111111112133435 test1111111111 111111112 13343 53 5345345</div>

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多