How set the same height of divs

前端 未结 5 2061
面向向阳花
面向向阳花 2021-01-14 19:59

This is my situation

HTML

 
5条回答
  •  轮回少年
    2021-01-14 20:17

    You can use display:table-cell property for this. and remove float:left write like this:

    #item1, #item2
    {
        display:table-cell;
    }
    

    Check this http://jsfiddle.net/59qEt/5/

    Note it's work till IE8 & above.

提交回复
热议问题