//文字溢出
$(function(){
$(".d_dt a").each(function(){
var maxwidth =100;
if($(this).text().length>maxwidth){
$(this).text($(this).text().substring(0,maxwidth));
$(this).html($(this).html()+'...');
}
})
})
//文字溢出
$(function(){
$(".d_dt a").each(function(){
var maxwidth =100;
if($(this).text().length>maxwidth){
$(this).text($(this).text().substring(0,maxwidth));
$(this).html($(this).html()+'...');
}
})
})
转载于:https://www.cnblogs.com/beiz/p/5219872.html