Content of element not 100% in IE10 inside of equal height columns

前端 未结 4 699
不思量自难忘°
不思量自难忘° 2021-01-25 10:50

For an application I am working on I need equal height columns. I chose to use CSS to style my column items as table\'s. In this way the height of each columns is indeed the max

4条回答
  •  佛祖请我去吃肉
    2021-01-25 11:19

    Percentages along with height can be a funny one. I find that the way to get it right is to use jquery:

    $('.element').height($('.element').parent().height()/100 * //percentage goes here);

提交回复
热议问题