我有一個表,並與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