我是靠谱客的博主 俭朴白开水,这篇文章主要介绍微信小程序 — 流程进度样式,现在分享给大家,希望可以做个参考。

1.效果图

 

2.wxml

<view class="steps ">

<view class="step active">

1

</view>

<view class="step">

2

</view>

<view class="step">

3

</view>

</view>

 

3.wxss

.steps {

line-height: 80rpx;

height: 80rpx;

text-align: center;

font-size: 28rpx;

width: 100%;

color: #fff;

}

 

/* 当前步骤中的样式修改 */

 

.steps .active, .steps .active:after {

background-color: #c71d23;

}

 

.step {

width: 33.33%;

float: left;

background: #999;

position: relative;

}

 

/* 为每个步骤末尾加灰色三角形和白色边框 */

 

.step::after {

content: "";

border: 10rpx solid #fff;

border-bottom: 0;

border-left: 0;

height: 57rpx;

width: 57rpx;

position: absolute;

display: block;

top: 6rpx;

right: -26rpx;

z-index: 10;

transform: rotate(45deg);

}

 

/* 取消最后一项所有的after伪类 */

 

.step:last-child::after {

content: "";

border: none;

height: 0;

width: 0;

z-index: 11;

}

 

最后

以上就是俭朴白开水最近收集整理的关于微信小程序 — 流程进度样式的全部内容,更多相关微信小程序内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(45)

评论列表共有 0 条评论

立即
投稿
返回
顶部