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

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

WBOY
Release: 2016-06-21 09:11:55
Original
1322 people have browsed it

程序

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



Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template