- 博客(2)
- 收藏
- 关注
转载 表格中奇数行和偶数行使用不同颜色的背景样式
/* 偶数行背景使用样式: */ table tr:nth-child(even){ background:cadetblue; } /* 奇数行背景使用样式: */ table tr:nth-child(odd){ background:darkslategray; } 转载于:https://www.cnblogs.com/Ian-webe...
2019-07-12 14:56:00 1958
转载 不换行隐藏溢出表格的文本,并省略号表示隐藏部分
table{ table-layout:fixed; /* 只有定义了表格的布局算法为fixed,下面td的定义才能起作用。 */ } td{ white-space:nowrap;/*文本不会换行,文本会在在同一行上继续,直到遇到 <br> 标签为止 */ overflow:hidden;/* 内容超出宽度时...
2019-07-12 14:36:00 211
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人