Get resolution width
$width. = "";
Get resolution Height
$height. = "";
echo "Browser resolution is:" $width. " X ". $height;
?>
I use the above code to get the resolution of the customer service, in the local test, found that the resolution to get IE browser (not the same as the computer screen settings) and other are not the same.
Excuse me, is this a problem with my code, or is that what it is?
Reply to discussion (solution)
Not exactly tested, but by feeling a little different.
and other expert answers
No one
Your is IE several in IE8 FF 5.0 Chrome 12 all normal
I tested it on IE7 and IE8, not the same as Chrome 12.
My screen resolution is 1920*1080, but I passed document.write (
"Screen resolution is:" +screen.width+ "*" +screen.height}, the resulting value is 1536*864, put on other computers to get the same value as the screen resolution, why AH?