博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CSS 进度条(含进度)
阅读量:4146 次
发布时间:2019-05-25

本文共 692 字,大约阅读时间需要 2 分钟。

<style>
body {
    font-size: 12px;
}
.ProgressBar {
    position: relative;
    width: 200px;    /* 宽度 */
    border: 1px solid #B1D632;
    padding: 1px;
}
.ProgressBar div {
    display: block;
    position: relative;
    background: #B1D632;
    color: #333333;
    height: 20px; /* 高度 */
    line-height: 20px;  /* 必须和高度一致,文本才能垂直居中 */
}
.ProgressBar div span {
    position: absolute;
    width: 200px; /* 宽度 */
    text-align: center;
    font-weight: bold;
}
</style>
进度条的XHTML代码:
<div class="ProgressBar">
     <div style="width: 50%;"><span>50%</span></div>
</div>
<br><br><br>
<div class="ProgressBar">
     <div style="width: 80%;"><span>80%</span></div>
</div>
<br><br><br>
<div class="ProgressBar">
     <div style="width: 10%;"><span>10%</span></div>
</div>
你可能感兴趣的文章
LOCAL_PRELINK_MODULE和prelink-linux-arm.map
查看>>
Simple Guide to use the gdb tool in Android environment
查看>>
Netconsole to capture the log
查看>>
Build GingerBread on 32 bit machine.
查看>>
How to make SD Card world wide writable
查看>>
Detecting Memory Leaks in Kernel
查看>>
Linux initial RAM disk (initrd) overview
查看>>
Timestamping Linux kernel printk output in dmesg for fun and profit
查看>>
There's Much More than Intel/AMD Inside
查看>>
CentOS7 安装MySQL 5.6.43
查看>>
使用Java 导入/导出 Excel ----Jakarta POI
查看>>
本地tomcat 服务器内存不足
查看>>
IntelliJ IDAE 2018.2 汉化
查看>>
基于S5PV210的uboot移植中遇到的若干问题记录(一)DM9000网卡移植
查看>>
Openwrt源码下载与编译
查看>>
我和ip_conntrack不得不说的一些事
查看>>
Linux 查看端口使用情况
查看>>
文件隐藏
查看>>
两个linux内核rootkit--之二:adore-ng
查看>>
两个linux内核rootkit--之一:enyelkm
查看>>