zoukankan      html  css  js  c++  java
  • flex中align-self设置侧轴的某元素的对其方式

    flex中的align-self

    设置侧轴的某元素自己的对其方式

    
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>align-self</title>
        <style>
            /* 设置第三个span底部对其 */
            div {
                 800px;
                display: flex;
                height: 500px;
                background-color: chartreuse;
            
            }
    
           div span{
                 150px;
                height: 100px;
                margin: 10px;
                background-color: brown;
              
            }
    
            div span:nth-child(3){
                align-self: flex-end;
            }
        </style>
    </head>
    <body>
      <div>
          <span>11</span>
          <span>22</span>
          <span>333</span>
    
    
    </div>
    </body>
    </html>
    
    
    

  • 相关阅读:
    干将莫邪
    Rancher
    Rancher 1.6 版本 只能在 linux 下用
    野蛮人大作战
    Oracle
    Gradle
    正则表达式 我遇到的
    Redis
    NestJS 用TypeScript开发 nodeJS后端
    Koa2
  • 原文地址:https://www.cnblogs.com/malong1992/p/14798909.html
Copyright © 2011-2022 走看看