国产探花免费观看_亚洲丰满少妇自慰呻吟_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>

 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 中牟县| 乐清市| 黄龙县| 固安县| 墨竹工卡县| 应城市| 海宁市| 芦山县| 象山县| 根河市| 新密市| 洛阳市| 绥芬河市| 桦甸市| 河东区| 馆陶县| 赞皇县| 丹棱县| 博罗县| 开封县| 博乐市| 九龙县| 中牟县| 攀枝花市| 博野县| 东至县| 乌鲁木齐县| 麦盖提县| 五峰| 广水市| 阳新县| 宜川县| 大名县| 河北区| 阿克陶县| 伊金霍洛旗| 锡林郭勒盟| 岱山县| 闻喜县| 尼木县| 南丰县|