版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xukongjing1/article/details/83113131
1.placeholder设置颜色
::-webkit-input-placeholder{/*Webkit browsers*/
color:#CCC;
font-size:14px;
}
:-moz-placeholder{/*Mozilla Firefox 4 to 8*/
color:#CCC;
font-size:14px;
}
::moz-placeholder{/*Mozilla Firefox 19+*/
color:#CCC;
font-size:14px;
}
:-ms-input-placeholder{/*Internet Explorer 10+*/
color:#CCC;
font-size:14px;
}
2.td中文字禁止换行,超出部分显示省略号
首先为表头设置固定宽度 可以为百分比
td设置样式
tbody tr td{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
table 设置样式
table{
table-layout: fixed;
}