No gaps on both sides, gaps between each column width: 100%; display: grid; grid-template-columns: repeat(4,1fr); justify-items: stretch; grid-gap: 1px; Property introduction: The
Property introduction: After the container specifies the grid layout, it then needs to be divided into rows and columns. The effect is as follows: The gaps between rows and columns are the same, and the vertical direction is prioritized. .swiper-slide-inner { width: 100%; display: grid; /*Vertical arrangement first*/ grid-auto-flow: column; /* Divide into three columns, average score*/ /*grid-template-columns: repeat(3, 1fr);*/ grid-template-columns: 1fr 1fr 1fr; /* Divide into 2 rows, distribute evenly*/ /*grid-template-rows: repeat(2, 1fr);*/ grid-template-rows: 1fr 1fr; grid-row-gap: 10px; grid-column-gap: 10px; .card-item { display: flex; flex-wrap: wrap; width: 230px; height: 230px; } } Property introduction: After dividing the grid, the sub-elements of the container will be automatically placed in each grid in order. The default placement order is "rows first, columns later", that is, fill up the first row first, and then start placing the second row, which is the order of the numbers in the figure below. This order is determined by The effect is as follows: The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. |
<<: Two examples of using icons in Vue3
>>: Detailed explanation of MySQL's Seconds_Behind_Master
Preface JSON is a lightweight data exchange forma...
A hyperlink URL in Vm needs to be concatenated wit...
Table of contents Preface call usage accomplish A...
This should be something that many people have do...
[LeetCode] 180. Consecutive Numbers Write a SQL q...
1. IE browser mode Hack logo 1. CSS hack logo Copy...
Table of contents JSON appears Json structure Jso...
Table of contents 1. What is the use of provide/i...
I once encountered an assignment where I was give...
The solution to the problem that Ubuntu 18.04 in ...
1. Create a SpringBooot project and package it in...
After installing wamp for the first time, all ser...
Recently, when I was learning docker, I found tha...
First of all, let me talk to you about my daily l...
The file server is one of the most commonly used ...