通过下面的js代码打开一个浏览器窗口,为什么不在屏幕中央呢?
感觉和任务栏有关系,但是screen.availHeight不是去掉了任务栏的高度吗
var screenWidth = screen.availWidth;
var screenHeight = screen.availHeight;
var positionLeft = Math.ceil((screenWidth - 960) / 2);
var positionTop = Math.ceil((screenHeight - 600) / 2);
var _windowState = 'top=' + positionTop+ ',left=' + positionLeft +'width=960,height=600,resizable=1,scrollbars=0,status=0,toolbar=0,menubar=0,location=0';
window.open(url,'',windowState);
--
修改:niyama FROM 211.100.22.*
FROM 211.100.22.*