<style>
.content_hover_show {
display:block;
word-break:break-word;
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap;
width:300px;
height:16px;
}
.content_hover_show:hover {
display:block;
white-space:normal;
overflow:hidden;
/* max-height:200px;*/
cursor:default;
height:auto;
}
</style>
<script>
$(document).ready(function () {
var columnName='c_voucherRemark';//设置列名
var className='content_hover_show';
$('td.column_'+columnName).each(function(){
var tdHtml=$(this).html();
$(this).html('<div class="'+className+'">'+tdHtml+'</div>');
});
});
</script>