The code looks like this: // Line style of the parallelogram of the delivery address <view class="top"></view> //Style .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 realizes the parallelogram colored lines under the delivery address <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> This is the end of this article about the CSS delivery address parallelogram line style example code. For more related CSS border line style content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! |
<<: Teach you to quickly build a web cluster project based on nginx
>>: Discussion on horizontal and vertical centering of elements in HTML
MySQL query not using index aggregation As we all...
This tutorial shares the installation and configu...
Table of contents Scenario Task idea analyze Conc...
Table of contents 1. Basic conditions for databas...
Preface I watched web.dev's 2020 three-day li...
This article example shares the specific code of ...
1. Color matching problem <br />A web page s...
Preface If you want to count the source of websit...
First, let me show you the finished effect Main i...
In our life, work and study, social networks have ...
Web design is an emerging marginal industry that c...
Table of contents 1. for loop: basic and simple 2...
Preface So I wrote this blog. This blog also reco...
1. Only Chinese characters can be input and pasted...
Table of contents Download the compressed file Ad...