窗口和对话框居中对齐

Web前端的窗口,对话框等界面,经常需要居中对齐。
在Jquery Easyui中等window组件中,通常有宽度width、高度height、距离容器左边的距离left、距离容器顶部的距离top,4个参数。


在实现过程中,主要就是动态或静态设置这4个参数。


当前窗口的高度:$(window).width()
当前窗口的宽度:$(window).width()


如果是获得父窗口的,用window.parent就可以了。


width:是个方法,不是属性。

http://www.qiyeku.com/xinwen7355834.html
http://www.qiyeku.com/xinwen7355832.html
http://www.qiyeku.com/xinwen7355830.html
http://www.qiyeku.com/xinwen7355828.html
http://www.qiyeku.com/xinwen7355826.html
http://www.qiyeku.com/xinwen7355824.html
http://www.qiyeku.com/xinwen7355821.html
http://www.qiyeku.com/xinwen7355819.html
http://www.qiyeku.com/xinwen7355817.html
http://www.qiyeku.com/xinwen7355788.html
http://www.qiyeku.com/xinwen7355724.html
http://www.qiyeku.com/xinwen7355694.html
http://www.qiyeku.com/xinwen7355689.html
http://www.qiyeku.com/xinwen7355682.html
http://www.qiyeku.com/xinwen7355675.html
http://www.qiyeku.com/xinwen7355670.html
http://www.qiyeku.com/xinwen7355660.html
http://www.qiyeku.com/xinwen7355654.html
http://www.qiyeku.com/xinwen7355651.html
http://www.qiyeku.com/xinwen7355647.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值