Site Notice

hello, world

Difference between revisions of "Progress"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
m ([InPageEdit] 没有编辑摘要)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
<button onclick="$('.progress').addClass('done')">开始</button> <button onclick="$('.progress').removeClass('done')">重置</button>
+
<button onclick="$('.ipe-progress').toggleClass('done')">切换</button>
<div class="progress">
+
 
   <div class="bar"></div>
+
<div class="ipe-progress" style="width:100%;">
 +
  <div class="progress-bar"></div>
 +
</div>
 +
 
 +
<div class="ipe-progress" style="width:80%;">
 +
  <div class="progress-bar"></div>
 +
</div>
 +
 
 +
<div class="ipe-progress" style="width:60%;">
 +
  <div class="progress-bar"></div>
 +
</div>
 +
 
 +
<div class="ipe-progress" style="width:40%;">
 +
  <div class="progress-bar"></div>
 +
</div>
 +
 
 +
<div class="ipe-progress" style="width:200px;">
 +
  <div class="progress-bar"></div>
 +
</div>
 +
 
 +
<div class="ipe-progress" style="width:50px;">
 +
   <div class="progress-bar"></div>
 
</div>
 
</div>
  
Line 9: Line 30:
 
</script>
 
</script>
 
<style>
 
<style>
  .progress {
 
    width: 80%;
 
    margin: auto 10%;
 
    height: 1em;
 
    border: 1px solid #c5c5c5;
 
    padding: 2px;
 
  }
 
 
  .progress .bar {
 
    height: 100%;
 
    background: #a3a2a2;
 
  }
 
  
  .progress.done .bar {
 
    width: 100%;
 
    margin: auto 0;
 
    background: green;
 
  }
 
 
</style>
 
</style>
  
 
</html>
 
</html>

Latest revision as of 11:12, 23 November 2019

<html> <button onclick="$('.ipe-progress').toggleClass('done')">切换</button>

<div class="ipe-progress" style="width:100%;">

 <div class="progress-bar"></div>

</div>

<div class="ipe-progress" style="width:80%;">

 <div class="progress-bar"></div>

</div>

<div class="ipe-progress" style="width:60%;">

 <div class="progress-bar"></div>

</div>

<div class="ipe-progress" style="width:40%;">

 <div class="progress-bar"></div>

</div>

<div class="ipe-progress" style="width:200px;">

 <div class="progress-bar"></div>

</div>

<div class="ipe-progress" style="width:50px;">

 <div class="progress-bar"></div>

</div>

<script>

</script> <style>

</style>

</html>