zoukankan      html  css  js  c++  java
  • bootstrap table字段太长,显示省略号,鼠标停留显示文字

    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"
                                        }
                                    };
                                }
                            },
  • 相关阅读:
    对白
    泰芒了
    下雨
    聚会
    周末了
    One English Sentence
    Struts拦截器使用
    JAVA语法题
    jquery全选框的实现
    实战3--设计实体, 映射实体
  • 原文地址:https://www.cnblogs.com/wrld/p/13344847.html
Copyright © 2011-2022 走看看