开发者

How to define document height is changed in javascript/jquery?

开发者 https://www.devze.com 2023-03-13 01:50 出处:网络
I have a problem for showing a full size div over all of my HTML document. I\'ve set the size of my div to my page开发者_如何学C width and height. and write this codes for resizing of document:

I have a problem for showing a full size div over all of my HTML document. I've set the size of my div to my page开发者_如何学C width and height. and write this codes for resizing of document:

$(window).resize(function(){
    sysSetOverlaySize(cDivOverlay);//cDivOverlay is my full size div
});

when my browser window resize this function is called and set the new size of my div from the size of my page. but when tinymce increase my page height this function only called in FF. I want some action to define when document height is changed. Thanks a lot


How about doing it in css with positioning:

#myDiv {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
0

精彩评论

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