添加样式(后台给字段note(left,height-auto ))

$.map中    var note = items.NOTE();

_thisKey.push({})中  note: note,
var abbrStyle = '';

// style +='white-space:' +'normal'+';';
if(lis.note ==='left') {
abbrStyle += ' text-align:left;'
}else if(lis.note ==='right') {
abbrStyle += 'text-align:right;'
} else if($.trim(lis.note) ==='height-auto'){
abbrStyle += 'white-space:normal; text-align:left; text-overflow: normal;';
}




'<abbr style="'+abbrStyle+'">' +
value +
'</abbr >' +
posted @ 2018-04-20 18:29  笨笨!  阅读(115)  评论(0编辑  收藏  举报