开发者

Error in IE when setting element.style.height?

I have a rather large script that is setting the height of five elements to one pixel. The script can be found here ( https://github.com/Wolfy87/Spark/blob/master/modules/round.js ) and is throwing an err开发者_如何学编程or on line 39. The error is only thrown in IE 6 and 7. I can not for the life of me see anything wrong with this at all, any ideas anyone? Does IE have something against the height of div's? I have a running version of the whole library here ( http://flowdev.co.uk/spark.html ).

The error is as follows style is null or not an object.

It is only thrown once.

Thanks for any help you can give.


Have you tested what's being selected in line 33?

var top = Sizzle('div.spark-corner-top div', element[e]);

My guess is that top may be empty.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜