Home >php教程 >php手册 >当php程序中需要客户窗口的分辩率时,可以这样

当php程序中需要客户窗口的分辩率时,可以这样

WBOY
WBOYOriginal
2016-06-21 09:11:551328browse

程序

if(!$_GET["screenX"]) {
echo '
<script><br/>location = location.href+"?screenX="+screen.width+"&screenY="+screen.height;<br/></script>
';
exit;
}
$screenX = $_GET["screenX"];
$screenY = $_GET["screenY"];
?>
以下是其他内容



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn