Different kinds of browser resolution is not the same

Source: Internet
Author: User
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?

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.