当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Progress Bar Color

问题描述:

I have the following codes

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");

});

It is not working on my application.

分享给朋友:
您可能感兴趣的文章:
随机阅读: