1、实现的功能
// {field: 'shiti.content', title: __('试题内容'),
// formatter:function(value,row,index){
// value = value?value:'';
// var length = value.length;
// if(length&&length>35){length = 35;}
// return"<span title ='"+value+"'>"+value.substring(0,length)+"</span>"
// }
// },
{field: 'shiti.content', title: __('试题内容'),
formatter:Table.api.formatter.content
},
// {field: 'shiti.content', title: __('试题内容'),
// cellStyle:function (value, row, index) {
// return {
// css: {
// "min-width": "100px",
// "white-space": "nowrap",
// "text-overflow": "ellipsis",
// "overflow": "hidden",
// "max-width": "400px"
// }
// }
// }
// },
// {field: 'shiti.content', title: __('试题内容'),
// cellStyle: {css: {
// "min-width": "100px",
// "white-space": "nowrap",
// "text-overflow": "ellipsis",
// "overflow": "hidden",
// "max-width": "400px"
// }
// }
// },
-
http://issues.wenzhixin.net.cn/bootstrap-table/#options/table-style.html?
-
https://blog.youkuaiyun.com/py245164372/article/details/72907521
3、bootstrap table表格信息过长显示省略,悬停显示详细信息
https://blog.youkuaiyun.com/Chris__wang/article/details/82843423
4、这个效果最好了,记录一下