CSS:
@eval ctHeaderC1 com.CssServlet.ctHeaderColor1;
@eval ctHeaderC2 com.CssServlet.ctHeaderColor2;
.cellTableHeader {
background: ctHeaderC1;
background: -moz-linear-gradient(top, ctHeaderC1 0%, ctHeaderC2 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, ctHeaderC1 ), color-stop(100%, ctHeaderC2 ));
background: -webkit-linear-gradient(top, ctHeaderC1 0%, ctHeaderC2 100%);
background: -o-linear-gradient(top, ctHeaderC1 0%, ctHeaderC2 100%);
background: -ms-linear-gradient(top, ctHeaderC1 0%, ctHeaderC2 100%);
background: linear-gradient(to bottom, ctHeaderC1 0%, ctHeaderC2 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='ctHeaderC1', endColorstr='ctHeaderC2',GradientType=0 );
}
我不会替换所有变量
但只有“背景:ctHeaderC1;” 被取代
:(