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');
}
View Code


 

posted @ 2016-01-16 11:17  bxzjzg  阅读(355)  评论(0编辑  收藏  举报