[英]Moving progress bar in html?
I'm programming a progress bar that the bar value would increase. 我正在编写一个进度条,该酒吧的值将增加。 I have used 我用过
<progress value="22" max="100"></progress>
and I have also programmed a Java Applet. 而且我还编写了Java Applet。 Well, the applet had problems with security and some Mac OS versions don't have a Java SE version yet, so that was out of the picture. 好吧,这个applet在安全性方面有问题,并且某些 Mac OS版本还没有Java SE版本,因此这是不可能的。 Here is the HTML code: 这是HTML代码:
<html>
<title>Get Vander Walls Glue</title>
<head></head>
<style>
body {
transition: background 10s, color 10s, text-shadow 10s;
-webkit-transition: background 10s, color: 1s, text-shadow 1s;
background: #1C8C08;
color: #fff;
text-shadow: 0 0 0.75em #08328C;
text-decoration: none;
text-align: center;
}
body:hover {
background: #08328C;
color: #600;
text-shadow: 2px 2px #300, -2px -2px #922;
}
a {
color: #fff;
text-decoration: none;
}
a:hover {
color: #aaa;
}
</style>
<body style="color: #fff; font-family: sans-serif, arial; font-size: 3em; padding: 0; margin: 0">
<h1 class="big">Vander Walls Glue</h1>
<hr>
<a href="http://www.moviemakingman.tk">Back</a><br/>
</body>
<footer></footer>
</html>
Can someone please help me and explain? 有人可以帮我解释一下吗? I want to actually hear how it works not that it just works. 我想真正听到它是如何工作的,而不是它只是在工作。
I suggest achieving this with JQuery.. 我建议使用JQuery实现。
Check out JQuery progress plugin 查看JQuery进度插件
$( "#progressbar" ).progressbar({
value: 37
});
Where value is the percentage in the progress. 值是进度中的百分比。
I put together a jsFiddle demo here ! 我在这里整理了一个jsFiddle 演示 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.