CSS의FLEX익히기

속성을 display:flex; 。로시작한다。

속성

显示,伸缩方向,伸缩包装,伸缩流,对齐内容,对齐项目,对齐内容

 display: flex; 
align-items: center;
justify-content: center; // 가로 가운데 정렬

flex-direction:行; //기본값
flex-direction:列; //수평으로100%채워서다
flex-direction:反向列; //列뒤집는다

속성

顺序,伸缩增长,伸缩,伸缩基础,伸缩,自我对齐

  flex-basis:200px;  //선택된item의크기를지정하는방법 
flex-grow:1; //각项目을커지게背景해서1 / n을갖는다
flex-shrink:0; //容器中的项目,容器中的项目,容器中的项目,容器中的项目。
flex-shrink:1; //
align-self: center; // 세로 가운데 정렬

圣杯布局

출처:위키피디아

。사람들이만들려다가한다고다한다。 이것을flex를있있있다。

   
 .container{ 
  display: flex; 
  flex-direction: column; 
 } 
.content{
 display:flex; 
 } 
nav, aside{
 flex-basis: 150px; 
 flex-shrink: 0; 
 } 
  < div > 
  < header > 
  < h1 >생활코딩</ h1 > 
  </ header > 
  < section > 
  < nav > 
  < ul > 
  < li >html</ li > 
  < li >css</ li > 
  < li >javascript</ li > 
  </ ul > 
  </ nav > 
  < main > 
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis veniam totam labore ipsum, nesciunt temporibus repudiandae facilis earum, sunt autem illum quam dolore, quae optio nemo vero quidem animi tempore aliquam voluptas assumenda ipsa voluptates.
  </ main > 
  < aside > AD </ aside > 
  </ section > 
  < footer > 
  href="https://opentutorials.org/course/1">홈페이지</ a > 
  </ footer > 
 </ div > 

강의:생활코딩

타운홀에서flex를쓴부분

처음젝트를로젝트를처음flex를만났다。 이렇게있었다있었! 나는에서에서에서에서에서에서에서나는나는나는나는각종각종싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데싱했는데의의의의의의의의의의의의의의의의의의 _auth.scss이곳이다。

  .content-wrapper { 
显示:flex;
flex-flow:列;
高度:100%;
&-overlay:在{之前
内容:”;
位置:绝对;
最高:0;
底部:0
宽度:100%;
背景颜色:rgba(0,0,0,.5);
z索引:99;
}
.top-container {
flex-grow:1;
背景尺寸:封面;
}

그저 flex-flow:column; 。기능을것이었다。 들로비율대로들로。신세계였다。

靴子,靴子,의,않고도,않고도,。,같,。,。,。,。,。,。,。,。等。 屈최고!!