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"
                                    }
                                };
                            }
                        },

 

posted on 2020-07-20 14:22  巴黎夜雨……  阅读(3620)  评论(0编辑  收藏  举报