2012-07-12 28 views

回答

4

由於Jevar的建議,我設法找到了Quickstart指南添加進度控制。我想要的確是一個ProgressRing,更特別的是一個不確定的進度環。下面是它是如何在HTML做/ JS

HTML

<label class="progressRingText"> 
    <progress class="win-ring withText"></progress>Processing</label> 

CSS

progress.withText 
{ 
    color: inherit; /* Uses the same text color as the page */ 
    vertical-align: text-bottom; /* Makes the bottom of the control align with the bottom of its label */ 
} 

/* Text style for a label for the progress ring */ 
.progressRingText 
{ 
    font-family: "Segoe UI"; 
} 

/* Text style for a label for a default size progress ring */ 
.progressRingText 
{ 
    font-size: 11pt; 
    line-height: 15pt; 
} 

/* The margin to separate the ring and its label */ 
.progressRingText progress 
{ 
    margin-right: 5px; 
} 
-1

使用的

進度相同的寬度和高度

例如

<progress style="width:50px;height:50px;"> 

元素,你會得到這種效果。