制作进度条的两种方法
2014-04-18 00:00
281 查看
摘要: 制作进度条的两种方法
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>制作进度条的两种方法</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style>
*{
margin:0;
padding:0;
}
body{font-size:12px;}h1{font-size:15px;}
.wrap{
font-size: 12px;
margin:40px auto;
width:400px;
}
/*进度条样式*/
.progressbar_1{
background-color:#eee;
height:16px;
width:150px;
border:1px solid #bbb;
color:#222;
}
.progressbar_1 .bar {
background-color:#6CAF00;
height:16px;
width:0;
}
</style>
</head>
<body>
<div class="wrap">
<h1>1,构建基本的HTML结构和CSS样式</h1>
0%的状态:
<div class="progressbar_1">
<div class="bar"></div>
</div>
50%的状态:
<div class="progressbar_1">
<div class="bar" style="width: 50%;"></div>
</div>
80%的状态:
<div class="progressbar_1">
<div class="bar" style="width: 80%;"></div>
</div>
100%的状态:
<div class="progressbar_1">
<div class="bar" style="width: 100%;"></div>
</div>
这步非常简单,相信大家都能看明白。
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>制作进度条的两种方法</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style>
*{
margin:0;
padding:0;
}
body{font-size:12px;}h1{font-size:15px;}
.wrap{
font-size: 12px;
margin:40px auto;
width:400px;
}
/*进度条样式*/
.progressbar_1{
background-color:#eee;
height:16px;
width:150px;
border:1px solid #bbb;
color:#222;
}
.progressbar_1 .bar {
background-color:#6CAF00;
height:16px;
width:0;
}
</style>
</head>
<body>
<div class="wrap">
<h1>1,构建基本的HTML结构和CSS样式</h1>
0%的状态:
<div class="progressbar_1">
<div class="bar"></div>
</div>
50%的状态:
<div class="progressbar_1">
<div class="bar" style="width: 50%;"></div>
</div>
80%的状态:
<div class="progressbar_1">
<div class="bar" style="width: 80%;"></div>
</div>
100%的状态:
<div class="progressbar_1">
<div class="bar" style="width: 100%;"></div>
</div>
这步非常简单,相信大家都能看明白。
</div>
</body>
</html>
相关文章推荐
- Unity3D中进度条的两种使用插件制作方法
- HTMl5与CSS3两种制作时钟的方法
- IOS 制作静态库的两种方法
- IOS 制作静态库的两种方法
- PHP 文件上传进度条的两种实现方法的代码
- 制作精美圆角表格两种方法
- 血条进度条制作方法
- 4000 Matlab制作视频并转换成gif动态图的两种方法
- Unity 制作小地图(Minimap)系统 两种方法
- PHP 文件上传进度条的两种实现方法
- C#实现SQLSERVER2000数据库备份还原的两种方法 (带进度条)
- WPF制作带圆角的文本框的两种方法
- [整理] C#调用SQLDMO.DLL时间数据库备份 / 还原。 (香神无涯) // C#实现SQLSERVER2000数据库备份还原的两种方法 (带进度条)
- ToggleButton图片按钮的两种制作方法
- Photoshop制作倒影的两种方法
- docker 制作镜像的两种方法
- 制作精美圆角表格效果的两种方法
- 从源代码制作deb包的两种方法以及修改已有deb包(转载)
- media player 播放器列表两种制作方法
- Photoshop制作倒影的两种方法