进度条颜色

时间:2015-10-12 04:59:50

标签: javascript html css progress-bar

我有以下代码

HTML:

<head>
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
 <div class="progressBar">
   <div class="progressBarIndicator">
   </div>
 </div>
</body>

CSS:

.progressBar{background-color: #fff; height:20px;}
.progressBarIndicator{background-color: #000; height:20px;}

JAVASCRIPT:

$(document).ready(function(){
 $('.progressBarIndicator').css("background", "red");
});

它不能用于我的应用程序。

0 个答案:

没有答案
相关问题