List items with same height

后端 未结 8 1289
谎友^
谎友^ 2020-12-18 23:36

I have created a fiddle: http://jsfiddle.net/pQZ8f/

I want to have both the list items to be of same height without setting height manually. I want it to auto grow.

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-19 00:27

    I use jquery.matchHeight.js library for this purpose. Adding class ="frame-height" to all li elements, make all li elements the same height as the highest li element.

提交回复
热议问题