时间:2020-10-11来源:www.pcxitongcheng.com作者:电脑系统城
代码如下所示:
?| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
// 收货地址的平行四边形的线条样式 <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实现收货地址下边的平行四边形彩色线条
?| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<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> |
| 1 2 3 4 5 6 7 8 9 10 11 12 |
<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边框线条样式内容请搜索脚本之家以前的文章或继续浏览下面的相关文章
2023-03-11
vscode文本框怎么设置输入内容与边框的距离?2020-11-18
dns-prefetch是什么 前端优化:DNS预解析提升页面速度2020-10-11
解决搜索框和搜索按钮button边框不能重合的问题