1、设置表格超出用省略号显示的方法:
table{
table-layout: fixed;//不设置不起作用
}
table td{
width: 50%;
overflow: hidden;/*超出内容隐藏*/
text-overflow: ellipsis;/*超出省略号显示*/
white-space: nowrap;//一行显示,四行务必都出现才可以
}
1、设置表格超出用省略号显示的方法:
table{
table-layout: fixed;//不设置不起作用
}
table td{
width: 50%;
}