title 保留一个空格便于阅读多个单词
This commit is contained in:
@@ -37,7 +37,7 @@ $(function(){
|
|||||||
//获取td当前对象的文本,如果长度大于25;
|
//获取td当前对象的文本,如果长度大于25;
|
||||||
if($(this).text().trim().length>28){
|
if($(this).text().trim().length>28){
|
||||||
//给td设置title属性,并且设置td的完整值.给title属性.
|
//给td设置title属性,并且设置td的完整值.给title属性.
|
||||||
var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, "");
|
var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, " ");
|
||||||
//解决火狐title不能自动换行
|
//解决火狐title不能自动换行
|
||||||
var count = Math.floor(strTitle.length/62);
|
var count = Math.floor(strTitle.length/62);
|
||||||
for(var i=1;i<=count;i++){
|
for(var i=1;i<=count;i++){
|
||||||
|
|||||||
Reference in New Issue
Block a user