• flexbox父盒子justify-content属性


    <!DOCTYPE html>
    <html lang="en">
    
    <head>
      <meta charset="UTF-8">
      <title>Document</title>
      <style>
      .flex-container {
        display: inline-flex;
        /* 默认值 :整体左对齐*/
        /*justify-content: flex-start;*/
    
        /*整体居中对齐*/
        /*justify-content: center;*/
    
    	/*整体右对齐*/
        /*justify-content: flex-end;*/
    
    	/*子盒子平分多余空白*/
        /*justify-content: space-around;*/
    	
    	/*子盒子与子盒子之间,平分多余空白*/
        justify-content: space-between;
         400px;
        height: 400px;
        background-color: gray;
      }
    
      .flex-item {
        background-color: green;
         100px;
        height: 100px;
        margin: 5px;
      }
      </style>
    </head>
    
    <body>
      <div class="flex-container">
        <div class="flex-item">flex item 1</div>
        <div class="flex-item">flex item 2</div>
        <div class="flex-item">flex item 3</div>
      </div>
    </body>
    
    </html>
    

  • 相关阅读:
    jquery新知识
    jquery回顾
    Filter和Listener
    jsp,jstl,el
    cookie和session
    servlet和HTTP原理
    xml基本知识
    linux 相关操作
    linux mysql 相关操作、问题
    linux 文件结构
  • 原文地址:https://www.cnblogs.com/yesyes/p/7260123.html
Copyright © 2020-2023  润新知