css3宽度平均分配,CSS3 灵活分配宽度的格子 - 踏得网

Flexisadead是一款简易且灵活的网格布局系统,适用于快速搭建网站布局。它提供12列布局,支持不同断点尺寸,易于定制且不干扰样式设计。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Grid : Flex is a dead-simple, bare bones grid to help you get your layouts looking sharp very quickly. It only cares about laying out your content, so you can style your website or application however you like, without having

to worry about creating a custom grid system.

It's a 12 column grid, with sizing classes available for elements spanning 1 through 12 columns, so you can easily mix and match column sizes. If you don't don't need all 12 columns, it provides helper classes to center or right align your columns.

How to Use

Simply create a wrapper element with a .flex-row class. Place your column elements inside and give each a class of .flex-col-{breakpoint}-{column-width}, where {breakpoint} is the size at which the grid will

collapse to full-width (see Breakpoint Sizes below) and {column-width} is the number of horizontal columns that the element will occupy.

For example, if you want to create a three-column row that will stack vertically at the medium breakpoint size, your markup would look like this...

I'm the first element

Lorem ipsum dolor sit amet

I'm the second element

Lorem ipsum dolor sit amet

I'm the third element

Lorem ipsum dolor sit amet

...which creates this:

I'm the first element

Lorem ipsum dolor sit amet

I'm the second element

Lorem ipsum dolor sit amet

I'm the third element

Lorem ipsum dolor sit amet

Breakpoint Sizes

xs = 540px

sm = 768px

md = 992px

lg = 1200px

Getting Started

While the grid is fully functional, this is still a work in progress. Right now, the best way to get going would be to copy the SCSS or complied CSS in this Pen and add it to your project. I'm working on making the installation process as painless as possible, as soon as possible!

Sample Grid

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值