table变形处理

来源:互联网 发布:淘宝卖什么比较好? 编辑:程序博客网 时间:2024/05/16 15:24

table变形,则将table宽度设定由表宽和列表决定

<style>
table {
table-layout: fixed;
}
</style>

此时,如果高度变化了,就是td字多了,可以隐藏多余的,增加鼠标事件:style= "white-space:nowrap;overflow:hidden;width:10px;" title='el表达式'

 

 

 

automatic默认。列宽度由单元格内容设定。fixed列宽由表格宽度和列宽度设定。inherit规定应该从父元素继承 table-layout 属性的值。

 

0 0
原创粉丝点击