js实现兼容IE6与IE7的DIV高度_javascript技巧
来源:动视网
责编:小采
时间:2020-11-27 20:49:13
js实现兼容IE6与IE7的DIV高度_javascript技巧
js实现兼容IE6与IE7的DIV高度_javascript技巧: 代码如下: function setHeight() { var PageHeight=$(oPage).scrollHeight var MaxHeight=507 if(PageHeight>MaxHeight) { $(oPageMain).style.height=$(oPage).scrollHeight + 40 +px
导读js实现兼容IE6与IE7的DIV高度_javascript技巧: 代码如下: function setHeight() { var PageHeight=$(oPage).scrollHeight var MaxHeight=507 if(PageHeight>MaxHeight) { $(oPageMain).style.height=$(oPage).scrollHeight + 40 +px

代码如下:
js实现兼容IE6与IE7的DIV高度_javascript技巧
js实现兼容IE6与IE7的DIV高度_javascript技巧: 代码如下: function setHeight() { var PageHeight=$(oPage).scrollHeight var MaxHeight=507 if(PageHeight>MaxHeight) { $(oPageMain).style.height=$(oPage).scrollHeight + 40 +px