开发者

fnding boundries of browser

开发者 https://www.devze.com 2023-01-28 16:31 出处:网络
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.

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

精彩评论

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