Comments (1)
Grid Layout
grid-template-columns
grid-template-columns
可以设定固定的值,也可以设置百分比
// 横向 2 个 200px
grid-template-columns: 200px 200px;
用下面这段代码可以解决上面的问题:repeat表示重复,而 auto-fill
值表示能撑满容器的最大个数。
.parent {
display: grid;
grid-template-columns: repeat(auto-fill, 220px);
grid-gap: 1rem;
justify-content: space-between;
}
from hello-world-blog.
Related Issues (20)
- 客户端缓存
- Node.js的resolve机制 HOT 1
- 《 Micro State Management With React Hooks 》笔记 HOT 6
- 《 编程与类型系统 》笔记 HOT 3
- TypeScript类型编程 HOT 2
- 《调试九法:软硬件错误的排查之道》笔记 HOT 2
- FLV.js错误处理
- 浏览器自动播放
- 声明式UI HOT 1
- 键盘侠训练 HOT 14
- React性能优化 HOT 1
- vite技巧 HOT 3
- nginx配置 HOT 6
- 缓存更新 HOT 1
- redis用例 HOT 2
- 新网站的架构 HOT 5
- 从rails中学点设计 HOT 2
- ruby很有趣
- 实践下🍅工作法
- 还是得每天学点
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hello-world-blog.