欢迎光临
我们一直在努力

HTML中如何制作静态进度条

这篇文章将为大家详细讲解有关HTML中如何制作静态进度条,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

  html进度条代码示例如下:

  <!DOCTYPEHTML>

  <htmllang="en">

  <head>

  <title>html静态进度条示例</title>

  <metacharset="UTF-8">

  <styletype="text/css">

  .mask{

  position:absolute;

  left:0px;

  top:0px;

  height:100%;

  width:100%;

  background-color:#eee;

  }

  .out{

  margin:auto;

  margin-top:20%;

  text-align:center;

  height:30px;

  width:500px;

  background-color:#fff;

  border:1pxsolid#000;

  position:relative;

  }

  .in{

  position:absolute;

  left:0px;

  top:0px;

  height:30px;

  width:250px;

  background-color:#ddd;

  }

  .num{

  position:absolute;

  left:0px;

  top:0px;

  height:30px;

  line-height:30px;

  width:500px;

  text-align:center;

  position:relative;

  }

  </style>

  </head>

  <body>

  <divclass="mask">

  <divclass="out">

  <divclass="in"></div>

  <divclass="num">50%</div>

  </div>

  </div>

  </body>

  </html>

关于“HTML中如何制作静态进度条”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。