如何更改HTML表格的背景颜色?

有没有办法改变HTML米的背景颜色?

我知道,默认情况下它的背景颜色是绿色的。

这有可能将其背景颜色从绿色更改为任何其他颜色?

我尝试了style属性,但它仍然是绿色的。

 <meter style="background-color:red;"min="0" low="40" high="95" max="100" value="65">
 </meter>

meter::-webkit-meter-optimum-value {
    background: red; /* Green */
}
<meter min="0" low="40" high="95" max="100" value="65" col>
</meter>

meter::-webkit-meter-optimum-value {
  background: red;
}
meter::-moz-meter-bar { /* Firefox Pseudo Class */
  background: red;
}
<meter min="0" low="40" high="95" max="100" value="65">
</meter>

对于铬:

/*meter */
meter::-webkit-meter-bar {background: #e6e6e9;} /*background color of bar*/
meter::-webkit-meter-optimum-value {background: green;}
meter::-webkit-meter-suboptimum-value{background:orange;}
meter::-webkit-meter-even-less-good-value{background:red;}

对于Firefox:

/*meter */
/*bar with only one possible color*/
meter::-moz-meter-bar {background: red;}  /* color of bar*/

/* bar with different colors*/
/* between "low" and "high" thresholds*/
meter::-moz-meter-optimum-value {background: lightgreen;} 
/*below "low" threshold or above "high" threshold*/
meter::-moz-meter-suboptimum-value{background:gold;}  
链接地址: http://www.djcxy.com/p/87673.html

上一篇: How Can I change the background color of HTML meter?

下一篇: How to highlight my text