国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

使用CSS實現簡單的進度條

2024-07-11 07:46:11
字體:
來源:轉載
供稿:網友

有時,在裝載網頁時,我們需要制作一個進度條,實際上,這個進度條完全可以使用CSS來實現,下面就給促具體的代碼:

CSS源代碼如下:
<style>
#graphbox{
border:1px solid #e7e7e7;
padding:10px;
width:250px;
background-color:#f8f8f8;
margin:5px 0;
}
#graphbox h2{
color:#666666;
font-family:Arial;
font-size:18px;
font-weight:700;
}
.graph{
position:relative;
background-color:#F0EFEF;
border:1px solid #cccccc;
padding:2px;
font-size:13px;
font-weight:700;
}
.graph .orange, .green, .blue, .red, .black{
position:relative;
text-align:left;
color:#ffffff;
height:18px;
line-height:18px;
font-family:Arial;
display:block;
}
.graph .orange{background-color:#ff6600;}
.graph .green{background-color:#66CC33;}
.graph .blue{background-color:#3399CC;}
.graph .red{background-color:red;}
.graph .black{background-color:#555;}
</style>

HTML文檔部分源代碼如下:

<div id="graphbox">
<h2>BarGraphs Example</h2>
<div class="graph"><span class="orange" style="width:35%;">orange:35%</span></div>
<div class="graph"><span class="green" style="width:90%;">green:90%</span></div>
<div class="graph"><span class="blue" style="width:75%;">blue:75%</span></div>
<div class="graph"><span class="red" style="width:85%;">red:85%</span></div>
<div class="graph"><span class="black" style="width:100%;">black:100%</span></div>
</div>

 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 景德镇市| 五华县| 五常市| 丰县| 蕉岭县| 茶陵县| 肥城市| 平顺县| 永春县| 定西市| 依安县| 全南县| 雷波县| 六盘水市| 华亭县| 东方市| 平果县| 邓州市| 宾阳县| 乐陵市| 隆德县| 泸定县| 香河县| 广东省| 新蔡县| 蒙自县| 新竹市| 德保县| 怀化市| 若尔盖县| 阿合奇县| 磐石市| 怀宁县| 新沂市| 台北县| 沭阳县| 临海市| 织金县| 黔西| 清水河县| 田阳县|