微信小程序把玩(八)view组件


    
        view
        弹性框模型分为弹性容器以及弹性项目。当组件的display为flex或inline-flex时,该组件则为弹性容器,弹性容器的子组件为弹性项目。
    
    
        
            flex-direction: row
            
                
                
                
            
        
        
            flex-direction: column
            
                
                
                
            
        
        
            justify-content: flex-start
            
                
                
                
            
        
        
            justify-content: flex-end
            
                
                
                
            
        
        
            justify-content: center
            
                
                
                
            
        
        
            justify-content: space-between
            
                
                
                
            
        
        
            justify-content: space-around
            
                
                
                
            
        
        
            align-items: flex-end
            
                
                
                
            
        
        
            align-items: center
            
                
                
                
            
        

       
            align-items: center
            
                
                
                
            
        

    

.flex-wrp{
    height: 100px;
    display:flex;
    background-color: #FFFFFF;
}
.flex-item{
    width: 100px;
    height: 100px;
}


你可能感兴趣的:(111111111111111)