我希望进度条应该有三种不同的说法,从o t0开始40是蓝色的40到80是红色的,从80到100是绿色的。我搜索了很多,但我我只能简单地移动酒吧。 有没有办法做到这一点。如何在不同颜色的html中显示进度条
我使用的是以下代码,但它也不动。
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Progressbar - Default functionality</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(function() {
$("#progressbar").progressbar({
value: 37
});
});
</script>
</head>
<body>
<div id="progressbar"></div>
</body>
</html>
你应该与此链接重:http://stackoverflow.com/questions/6013067/dynamically-change-the-color-of-jquery-progress-bar – secretlm
@secretlm在这使得所有的背景绿色我想要部分明智的,如果它初始显示红色,然后像红色一样的绿色s –