html 物流状态,css+html如何实现物流进度样式(代码示例)
本篇文章給大家?guī)淼膬?nèi)容是介紹css+html如何實現(xiàn)物流進度樣式(代碼示例),有需要的朋友可以參考一下,希望對你們有所幫助。
效果:
css樣式:
ul li {
list-style: none;
}
.package-status {
padding: 18px 0 0 0
}
.package-status .status-list {
margin: 0;
padding: 0;
margin-top: -5px;
padding-left: 8px;
list-style: none;
}
.package-status .status-list>li {
border-left: 2px solid #0278D8;
text-align: left;
}
.package-status .status-list>li:before {
/* 流程點的樣式 */
content: '';
border: 3px solid #0278D8;
background-color: #0278D8;
display: inline-block;
width: 6px;
height: 6px;
border-radius: 10px;
margin-left: -7px;
margin-right: 10px
}
.package-status .status-box {
overflow: hidden
}
.package-status .status-list>li {
height: auto;
width: 95%;
}
.package-status .status-list {
margin-top: -8px
}
.package-status .status-box {
position: relative
}
.package-status .status-box:before {
content: " ";
background-color: #f3f3f3;
display: block;
position: absolute;
top: -8px;
left: 20px;
width: 10px;
height: 4px
}
.package-status .status-list {
margin-top: 0px;
}
.status-list>li:not(:first-child) {
padding-top: 10px;
}
.status-content-before {
text-align: left;
margin-left: 25px;
margin-top: -20px;
}
.status-content-latest {
text-align: left;
margin-left: 25px;
color: #0278D8;
margin-top: -20px;
}
.status-time-before {
text-align: left;
margin-left: 25px;
font-size: 10px;
margin-top: 5px;
}
.status-time-latest {
text-align: left;
margin-left: 25px;
color: #0278D8;
font-size: 10px;
margin-top: 5px;
}
.status-line {
border-bottom: 1px solid #ccc;
margin-left: 25px;
margin-top: 10px;
}
.list {
padding: 0 20px;
background-color: #F8F8F8;
margin: 10px 0 0 25px;
border: 1px solid #EBEBEB;
}
.list li {
line-height: 30px;
color: #616161;
}
HTML:
您的訂單開始處理
2017-08-17 23:31 周四
賣家發(fā)貨
2017-08-18 09:11 周五
發(fā)往深圳中轉(zhuǎn)站
2017-08-19 01:21 周六
到達深圳
2017-08-19 06:21 周六
發(fā)往潮汕中心
2017-08-19 09:21 周六
快件到達 潮汕中心
2017-08-20 14:16 周日
總結(jié)
以上是生活随笔為你收集整理的html 物流状态,css+html如何实现物流进度样式(代码示例)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android activity vie
- 下一篇: html写登录框中的字,一个登录界面的P