我有一个表,并与CSS,以及所有定制..CSS渐变背景颜色不工作,变成灰色的表头
纯色工作正常..
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
background-color:#32cd80;
color:#000000
这里是演示http://jsfiddle.net/20v000ax/,你可以看到它是绿色的,现在
现在,这里的问题就来了,绿色渐变色自定义之后,我看到一个灰色代替。
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
background: rgba(122, 255, 82, 1);
background: -moz-linear-gradient(left, rgba(122, 255, 82, 1) 0%, rgba(50, 205, 205, 1) 100%);
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(122, 255, 82, 1)), color-stop(100%, rgba(50, 205, 205, 1)));
background: -webkit-linear-gradient(left, rgba(122, 255, 82, 1) 0%, rgba(50, 205, 205, 1) 100%);
background: -o-linear-gradient(left, rgba(122, 255, 82, 1) 0%, rgba(50, 205, 205, 1) 100%);
background: -ms-linear-gradient(left, rgba(122, 255, 82, 1) 0%, rgba(50, 205, 205, 1) 100%);
background: linear-gradient(to right, rgba(122, 255, 82, 1) 0%, rgba(50, 205, 205, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7aff52', endColorstr='#32cdcd', GradientType=1);
color:#000000
演示http://jsfiddle.net/20v000ax/1/
这一工程..但你可以做的标题文字居中对齐和箭头在最右边? – skyline33 2014-10-30 08:30:54
很简单!在第21行添加:'padding:3px 6px;'到'th'。 – 2014-10-30 08:42:21
我明白了,现在一切都很好。 – skyline33 2014-10-30 08:59:17