亚洲av日韩av永久无码久久,免费的视频app网站,欧美性猛交xxxx免费看,国产成人精品三级麻豆

Flex布局-骰子demo

2018-4-20    seo達(dá)人

如果您想訂閱本博客內(nèi)容,每天自動(dòng)發(fā)到您的郵箱中, 請(qǐng)點(diǎn)這里

最近學(xué)習(xí)了Flex布局,

以下是阮一峰老師關(guān)于Flex的博客  。在此感謝他讓我get一項(xiàng)新技能!

Flex語(yǔ)法篇:http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html

Flex實(shí)戰(zhàn)篇:http://www.ruanyifeng.com/blog/2015/07/flex-examples.html

1、色子數(shù):1

思路:讓圓點(diǎn)(即子元素)在橫軸上居中在豎軸上居中,分別用justify-content和align-items

實(shí)現(xiàn)代碼:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style> *{  margin:0;  padding:0;  }  body{  background:#000;  }  .main {  width: 200px;  height: 200px;  background: #fff;  border-radius: 20px;  margin: 100px auto;  padding: 25px;  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  box-sizing: border-box;  display: flex;  justify-content: center;  align-items:center;  }  .main >div{  width:40px;  height:40px;  background:#000;  border-radius:40px;  }  </style>
</head>
<body>
<div class="main">
    <div class="item"></div>
</div>
</body>
</html>
2、色子數(shù):2

思路:豎列布局且在主軸方向采用justify-content的兩端對(duì)齊布局,這樣兩個(gè)圓點(diǎn)會(huì)在左邊呈現(xiàn),然后采用align-items讓其居中

實(shí)現(xiàn)代碼:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style> *{  margin:0;  padding:0;  }  body{  background:#000;  }  .main {  width: 200px;  height: 200px;  background: #fff;  border-radius: 20px;  margin: 100px auto;  padding: 25px;  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  box-sizing: border-box;  display: flex;  flex-direction: column;  justify-content: space-between;  align-items:center;  }  .main >div{  width:40px;  height:40px;  background:#000;  border-radius:40px;  }  </style>
</head>
<body>
<div class="main">
    <div class="item"></div>
    <div class="item"></div>
</div>
</body>
</html>
3、色子數(shù):3

思路:用到align-self屬性讓第二個(gè)和第三個(gè)圓點(diǎn)有自己的屬性設(shè)置,分別在縱軸方向上居中和低端對(duì)齊

實(shí)現(xiàn)代碼:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style> *{  margin:0;  padding:0;  }  body{  background:#000;  }  .main {  width: 180px;  height: 180px;  background: #fff;  border-radius: 20px;  margin: 100px auto;  padding: 25px;  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  box-sizing: border-box;  display: flex;  }  .main >div{  width:40px;  height:40px;  background:#000;  border-radius:40px;  }  .item:nth-child(2){  align-self:center;  }  .item:nth-child(3){  align-self:flex-end;  }  </style>
</head>
<body>
<div class="main">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
</div>
</body>
</html>
4、色子數(shù):4

思路:先豎著放兩行圓點(diǎn),每行圓點(diǎn)里橫著放兩個(gè)圓點(diǎn),所以最外層父元素設(shè)置align,里面的父元素設(shè)置justify-content

實(shí)現(xiàn)代碼:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style> *{  margin:0;  padding:0;  }  body{  background:#000;  }  .main {  width: 180px;  height: 180px;  background: #fff;  border-radius: 20px;  margin: 100px auto;  padding: 25px;  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  box-sizing: border-box;  display: flex;  flex-wrap:wrap;  align-content:space-between;  }  .column >div{  width:40px;  height:40px;  background:#000;  border-radius:40px;  }  .column{  flex-basis:100%;  display:flex;  justify-content: space-between;  }  </style>
</head>
<body>
<div class="main">
    <div class="column">
        <div class="item"></div>
        <div class="item"></div>
    </div>
    <div class="column">
        <div class="item"></div>
        <div class="item"></div>
    </div>
</div>
</body>
</html>
5、色子數(shù):5

實(shí)現(xiàn)代碼:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style> *{  margin:0;  padding:0;  }  body{  background:#000;  }  .main {  width: 180px;  height: 180px;  background: #fff;  border-radius: 20px;  margin: 100px auto;  padding: 25px;  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  box-sizing: border-box;  display: flex;  flex-wrap:wrap;  align-content:space-between;  }  .column > div{  width:40px;  height:40px;  background:#000;  border-radius:40px;  }  .column{  flex-basis:100%;  display:flex;  justify-content: space-between;  }  .column:nth-child(2){  justify-content: center;  }  </style>
</head>
<body>
<div class="main">
    <div class="column">
        <div class="item"></div>
        <div class="item"></div>
    </div>
    <div class="column">
    <div class="item"></div>
    </div>
    <div class="column">
        <div class="item"></div>
        <div class="item"></div>
    </div>
</div>
</body>
</html>
6、色子數(shù):6

思路:跟四點(diǎn)的一樣,先豎放三行在每行橫放兩個(gè)圓點(diǎn)

實(shí)現(xiàn)代碼:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style> *{  margin:0;  padding:0;  }  body{  background:#000;  }  .main {  width: 180px;  height: 180px;  background: #fff;  border-radius: 20px;  margin: 100px auto;  padding: 15px;  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  box-sizing: border-box;  display: flex;  align-content:space-between;  flex-wrap:wrap;  }  .column > div{  width:40px;  height:40px;  background:#000;  border-radius:40px;  }  .column{  flex-basis:100%;  display:flex;  justify-content: space-between;  }  </style>
</head>
<body>
<div class="main">
    <div class="column">
        <div class="item"></div>
        <div class="item"></div>
    </div>
    <div class="column">
        <div class="item"></div>
        <div class="item"></div>
    </div>
    <div class="column">
        <div class="item"></div>
        <div class="item"></div>
    </div>

</div>
</body>
</html>

藍(lán)藍(lán)設(shè)計(jì)www.chinatradebeam.com )是一家專注而深入的界面設(shè)計(jì)公司,為期望卓越的國(guó)內(nèi)外企業(yè)提供卓越的UI界面設(shè)計(jì)、BS界面設(shè)計(jì) 、 cs界面設(shè)計(jì) 、 ipad界面設(shè)計(jì) 、 包裝設(shè)計(jì) 、 圖標(biāo)定制 、 用戶體驗(yàn) 、交互設(shè)計(jì)、 網(wǎng)站建設(shè) 平面設(shè)計(jì)服務(wù)

日歷

鏈接

個(gè)人資料

藍(lán)藍(lán)設(shè)計(jì)的小編 http://www.chinatradebeam.com

存檔

中文字幕av一区二区三区| 中国体育生gary飞机 | 老师办公室狂肉校花h| yin荡的人妻美妇系列| 联系附近成熟妇女| 大学生第一次破女处a片| 成人动漫在线观看| 亚洲av久久无码| 一边摸一边做爽的视频17国产| 少妇与大狼拘作爱性a片| 国产产无码乱码精品久久鸭| www国产成人免费观看视频| 日韩精品一区二区三区色欲AV| 久久国产欧美国日产综合抖音 | 国产农村熟妇videos| 久久精品国产亚洲AV大全| 扒开她的乳罩狂摸她的胸亲吻| 亚洲av之男人的天堂| 亚洲精品无码久久久久y | 一本久久综合亚洲鲁鲁五月天| 无码人妻精品一区二区三18禁| 舐め犯し3波多野结衣| 少妇把腿扒开让我爽爽视频| 粗大黑人巨精大战欧美成人| 久久婷婷人人澡人人爽人人爱| 午夜性刺激免费看视频| 久久精品国产亚洲av高清色欲| 哦┅┅快┅┅用力啊┅警花少妇| 教室停电h嗯啊好硬好湿| 黑人巨大vs日本人优在线| 少妇少洁第1一40章| 日本理伦片午夜理伦片| 国产成人午夜高潮毛片| 日韩av无码一区二区三区不卡| 丰满少妇被猛烈高清播放| 性饥渴艳妇k8经典a片| 欧美人妻日韩精品| 嫦娥仙子含精肉臀迎合| 日日摸日日碰人妻无码| 美女扒开尿口让男人桶| 色欲精品国产一区二区三区av|