读书人

怎么使弹出窗口居中显示

发布时间: 2012-11-01 11:11:32 作者: rapoo

如何使弹出窗口居中显示
将弹出窗口设置居中显示:

function selectProductFunction(height,width){window.open ('selectProductPage.action', '选择产品', 'height='+height+', width='+width+',top='+(screen.height-height)/2+',left='+(screen.width-width)/2+' ,toolbar=no,menubar=no, scrollbars=no, resizable=no,location=n o, status=no'); }

读书人网 >Web前端

热点推荐