黑松山资源网 Design By www.paidiu.com

代码如下所示:

//  收货地址的平行四边形的线条样式
	<view class="top"></view>
	
	//样式
	.top{
		background-color: #fff;
    	position: relative;
	}
	.top:before{
		position: absolute;
	    right: 0;
	    bottom: 0;
	    left: 0;
	    height: 2px;
	    background: repeating-linear-gradient(-45deg,#ff6c6c,#ff6c6c 20%,transparent 0,transparent 25%,#1989fa 0,#1989fa 45%,transparent 0,transparent 50%);
	    background-size: 80px;
	    content: "";
}

css 收货地址平行四边形的线条样式示例代码

ps:css实现收货地址下边的平行四边形彩色线条

<div class="xiantiao">
  <div class="city" style="margin-left:8px;"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city"></div>
  <div class="city" style="margin-right:0px;"></div>
</div>
<style>
            .xiantiao{width:100%; height:2px; overflow: hidden;}
            .city {
              width:36px;
              height:2px;
              margin-right: 23px;
              background-color: #44a5fc;
              color: #333;
              transform: skew(-45deg);
              float:left;
            }
</style>
黑松山资源网 Design By www.paidiu.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
黑松山资源网 Design By www.paidiu.com