Easy equal height DIVs without JavaScript possible?

后端 未结 3 402
面向向阳花
面向向阳花 2021-01-14 15:28

I\'ve worked mostly with table-based layouts up to this point, but since it\'s considered a no-go thing of the past now I\'ve taken on the task of learning DIV-based layouti

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-14 15:48

    here is an example using pure css
    
    body{margin-bottom:50px}
    div.holder { overflow:hidden }
    div.holder div { float:left; width:30%; background-color:#9C0; margin-right:5px; padding:10px; padding-bottom:9000px; margin-bottom:-9000px }
    

    http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout.html

提交回复
热议问题