jquery 截取长文本和css

时间:2016-08-20 11:08:38
【文件属性】:
文件名称:jquery 截取长文本和css
文件大小:34KB
文件格式:ZIP
更新时间:2016-08-20 11:08:38
HTML CSS 长文本 浏览器兼容 方法一:用CSS截断字符串:IE,FireFox,Opera ,Safari都兼容 .subLongText{ width:150px; height:24px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-overflow: ellipsis;/* IE/Safari */ -ms-text-overflow: ellipsis; -o-text-overflow: ellipsis;/* Opera */ -moz-binding: url("ellipsis.xml#ellipsis");/*FireFox*/ } 任意长度文本 方法二:适用js截取 JQUERY 文本截取方法
我是代码:$.fn.substr = function(l,c){ $(this).each(function(i,item) 以下两种方式都可以解决textarea行高自动适应类容的高度 以下两种方式都可以解决textarea行

【文件预览】:
JQUERY-substr.html
jquery-1.3.2.js

网友评论