今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Flexbox exercise
- [Instructor] We've just covered some general usage and syntax for various Flexbox sizing properties. Now let's take a closer look at how to use them in a CodePen example. Let's start by adding display flex to define the flex container. All the child elements have become flex items and align in a row. They also become the same width as their content. We can also see that there is extra space in the container. Now let's look at how we can change the sizing by adding the flex property. The first value, flex grow, defaults to zero. That means it will not expand to fill any extra space. If we change the value to one. All the flex items will now expand by the same amount to fill up the space. Since we're applying the same flex grow value to all of flex items, using a value of two or three or any number other than one won't make much of a difference. But if I wanted one of the items to have twice the amount of extra space…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
Intro to Grid and Flexbox59 秒
-
(已锁定)
Intro to Flexbox2 分钟 25 秒
-
(已锁定)
Flexbox: Orientation and ordering3 分钟 1 秒
-
(已锁定)
Sizing with flex properties2 分钟 29 秒
-
(已锁定)
Flexbox exercise3 分钟 51 秒
-
(已锁定)
Project: Sticky footer with flexbox5 分钟 39 秒
-
(已锁定)
Aligning flex items3 分钟 20 秒
-
(已锁定)
Project: Aligning elements with Flexbox3 分钟 41 秒
-
(已锁定)
Intro to CSS Grid2 分钟 23 秒
-
(已锁定)
The explicit grid3 分钟 59 秒
-
(已锁定)
The implicit grid2 分钟 58 秒
-
(已锁定)
Adding gutters with the gap property1 分钟 21 秒
-
(已锁定)
Project: Adding columns with Grid8 分钟 15 秒
-
-
-
-