在CSS样式中添加如下属性:
top: 50%;
left: 50%;
margin-top: -60px;(其中60px是自身高度的一半)
margin-left: -200px;(200px是自身宽度的一半)
如何让Popup窗口左右上下居中
最新推荐文章于 2024-01-17 14:28:26 发布
在CSS样式中添加如下属性:
top: 50%;
left: 50%;
margin-top: -60px;(其中60px是自身高度的一半)
margin-left: -200px;(200px是自身宽度的一半)