C#表格文字多收缩样式
C#表格文字多收缩样式
<style> .divOpen { height: 24px; overflow: hidden; } </style> ----------------- var html = '<div class="divOpen" onclick="divClick(this)" style="cursor: pointer; min-width:100px;">'; html += value; html += "</div>"; return html; function divClick(obj) { $(obj).toggleClass('divOpen'); }