overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.column_name {
display: block;
font-size: 12px;
color: #afafaf;
max-width: 140px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.column_name:hover {
position: absolute;
white-space: normal;
background-color: white;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
z-index: 1;
padding: 5px;
width: 280px;
}
2行を超える場合に ... を表示します。
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;