display:inline resets height and width

后端 未结 4 1362

I have created example at http://jsfiddle.net/GKnkW/2/

html




    Test
 <         


        
4条回答
  •  死守一世寂寞
    2020-11-30 11:47

    This should do it

    html

    
    
    
        Test
     
        
          
    1
    2
    3
    4

    css

    .step
    {
        margin:5px;
        height:150px;
        width:150px;    
        background: yellow;
        float:left;
    }
    
    .step-section
    {
      clear:both;
    }
    

提交回复
热议问题