作者:松狮猫vn | 来源:互联网 | 2023-01-26 16:53
progress {
border: none;
width: 400px;
height: 60px;
background: crimson;
}
progress {
color: lightblue;
}
progress::-webkit-progress-value {
background: lightblue;
}
progress::-moz-progress-bar {
background: lightcolor;
}
我几乎尝试了所有东西,但进度条的值颜色保持不变.唯一能够响应变化的浏览器是IE.Firefox允许仅更改背景颜色.Chrome根本不显示任何内容.你能发现我的代码有什么问题吗?
1> Renzo Calla..:
progress {
border: none;
width: 400px;
height: 60px;
background: crimson;
}
progress {
color: lightblue;
}
progress::-webkit-progress-value {
background: lightblue;
}
progress::-moz-progress-bar {
background: lightcolor;
}
progress::-webkit-progress-value {
background: red;
}
progress::-webkit-progress-bar {
background: blue;
}
It will work on webkit browser, like this example