怎么实现鼠标悬停显示文本框超出的内容


①:用js来定义函数

<head>
  <title>失物招领管理</title>
    <%@ include file="../flat/flat_head_inc.jsp" %>
    <script type="text/javascript">

      //鼠标悬浮时,显示文本框里面的全部内容

      function formatCellTooltip(value){
        return "<span title='" + value + "'>" + value + "</span>";
      }
    </script>
</head>

②:调用函数
 

<div data-options="region:'center',border:false" style="overflow: hidden;padding:0px;background:#EEEEEE;">
<table id="dg" class="easyui-datagrid" title="失物招领信息"
data-options="rownumbers:true,singleSelect:true,url:'${actionDataGridUrl}',method:'get',toolbar:'#toolbar',
showFooter:false,pagination:true,idField:'ID'">
<thead>
<tr>
  <th data-options="field:'SUMMARY',180,align:'center',formatter:formatCellTooltip">描述说明</th>
</tr>
</thead>
</table>
</div>

原文地址:https://www.cnblogs.com/fdllzw/p/5374182.html