【发布时间】:2013-04-03 06:57:08
【问题描述】:
我希望进度条应该有三个不同的,比如说从 o t0 40 是蓝色的,40 到 80 是红色的,从 80 到 100 是绿色的。我已经搜索了很多,但我得到的只是简单的进度条移动。 有没有办法做到这一点。
我正在使用我得到的以下代码,但它也没有移动。
<!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>
【问题讨论】:
-
你应该试试这个链接:stackoverflow.com/questions/6013067/…
-
标签: javascript jquery html jquery-ui progress-bar