当前位置:主页 > 查看内容

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

发布时间:2021-04-24 00:00| 位朋友查看

简介:代码如下所示: // 收货地址的平行四边形的线条样式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(-45d……

代码如下所示:

//  收货地址的平行四边形的线条样式
	<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: "";
}

在这里插入图片描述

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>

到此这篇关于css 收货地址平行四边形的线条样式示例代码的文章就介绍到这了,更多相关css边框线条样式内容请搜索脚本之家以前的文章或继续浏览下面的相关文章,希望大家以后多多支持脚本之家!


原文链接:https://m.jb51.net/css/747658.html
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!

推荐图文


随机推荐