Progress bar layout using CSS and HTML

前端 未结 9 2305
别跟我提以往
别跟我提以往 2020-12-30 01:03

I am trying to achieve UI as shown in the image. However I am having little hard time after trying combinations of positioning now I am clueless. Can someone help me with th

9条回答
  •  醉话见心
    2020-12-30 01:26

    i had the same problem and developed this:

    http://jsfiddle.net/DgXM6/2/

    HTML:

    40%

    CSS:

    .load{    
    width: 50%;
    height: 12px;
    background: url( data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAALCAYAAAC+jufvAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwAAADsABataJCQAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAPklEQVQYV2M48Gvvf4ZDv/b9Z9j7Fcha827Df4alr1b9Z1j4YsV/BuML3v8ZTC/7/GcwuwokrG4DCceH/v8Bs2Ef1StO/o0AAAAASUVORK5CYII=);  
    -moz-border-radius: 4px;
    border-radius: 4px;
    }
    
    .noload{
    width: 100px;    
     background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAALCAYAAAC+jufvAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwAAADsABataJCQAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAANUlEQVQYVy3EIQ4AQQgEwfn/zwghCMwGh8Tj+8yVKN0d2l00M6i70XsPmdmfu6OIQJmJqooPOu8mqi//WKcAAAAASUVORK5CYII=); 
    
    -moz-border-radius: 4px;
    border-radius: 4px;
        border: 1px solid #999999;    
        position: relative;
    }
    
    .loadtext {
        font-family: Consolas;    
    font-size: 11px;
        color: #000000;
         position: absolute;
        bottom: -1px;
    
     left: 45%;       
    }
    

提交回复
热议问题