可能重复:
Getting the screen resolution using PHP
这个问题不言自明。
我想要到达的地方是
$width = ; //user screen width in here
F1!F1!
发布于 2010-11-15 06:47:00
你不能在服务器端得到它,你必须用javascript和innerWidth在客户端得到它。如果需要,可以使用AJAX将其传递到服务器端。
https://stackoverflow.com/questions/4180134
复制相似问题