Getting actual height of an auto-heighted element in IE

前端 未结 6 2111
不知归路
不知归路 2020-12-21 15:18

I\'m pretty confused! with this:

...
...COLUMN1
6条回答
  •  一向
    一向 (楼主)
    2020-12-21 15:38

    I know this is an old question but I found a better answer than "Fix the css and forget the javascript".

    I had the exast same problem and used .innerHeight() and it forced jQuery to calculate the height. For some reason .outerHeight() did not work whilst .innerHeight() solved the problem. Not sure if there is a similar method for prototype. You could look into the jQuery library and figure out how .innerHeight() works, and write your own.

提交回复
热议问题