龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > Javascript编程 >

php,js,css字符串截取的办法集锦(2)

时间:2014-09-27 15:17来源:网络整理 作者:网络 点击:
分享到:
省略号的例子: 复制代码 代码如下: .ellipsis{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } [copy]参考资料: http://quirksmode.org/css/user-interface/textoverflo

省略号的例子:

复制代码 代码如下:

.ellipsis{
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

[copy]参考资料:
http://quirksmode.org/css/user-interface/textoverflow.html
https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow

 其实css的说明看一下mozilla开发者网站的图例就明白了。在这里就不多说了。

精彩图集

赞助商链接