| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
11年前发布

字符串进行截取显示插件:jQuery.smarttruncation

SmartTruncation 可自动根据容器的大小变化时,对容器内部的字符串进行截取显示,并可保留一些固定的内容,例如文件扩展名之类的。

示例代码:

$('.text-2 li').smartTruncation({    "truncateCenter" : true // "Hello World" -> "hel..rld"  });  $('.files li').smartTruncation({    "protectExtensions" : true // "myimagefile.jpg" -> "myimagef...jpg"  });

项目主页:http://www.open-open.com/lib/view/home/1361240637666

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1361240637666.html
其他jQuery插件 jQuery插件 SmartTruncation