jquery dataTable 内容过长显示省略号

jquery dataTable 内容过长显示省略号

直接在标签中加上样式:

<head>
    <style>
    	
        .list_result td:nth-child(1),.list_result td:nth-child(2){
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
        }
			
		
		.list_result td{
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
        }	
    style>
head>

你可能感兴趣的:(前端)