开发者

fnding boundries of browser

Is there any way to find boundary of browser

actually I am showing a div popup. It's working fine but it not showing properly when it comes at boundaries.

so i want to change position of 开发者_如何学JAVAdiv at boundary.


window.innerWidth and window.innerHeight hold the physical dimensions of viewable space. You can then use the left, top, width and height CSS properties to see if an element is inside this boundary.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜