bootstrap table字段太长,显示省略号,鼠标停留显示文字
{field: 'content_two', title: __('content_two') ,
formatter : function(value, row, index, field){
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + value + "'>" + value + "</span>";
},
cellStyle : function(value, row, index, field){
return {
css: {
"white-space": "nowrap",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width":"150px"
}
};
}
},
成为不了聪明的人,那就做一个有耐心、肯钻研,坚持不懈,永不放弃的人……
浙公网安备 33010602011771号