Screen.widthscreen.heightScreen.availheight//Get the screen height after removing the status bar screen.availwidth //Get the screen height after removing the status barfirst, the size of the screen through the browserSecond, get the browser window
JS gets the browser height and width values, as much as possible to consider multi-browser.In IE:Document.body.clientWidth ==> Body Object widthDocument.body.clientHeight ==> Body Object HeightDocument.documentElement.clientWidth ==> Visible Area
Web page Visible area width: document.body.clientWidthWeb page Visible Area height: document.body.clientHeightWeb page Visible Area width: document.body.offsetWidth (including edge width)Web page Visible Area High: document.body.offsetHeight
Web page Visible area width: document.body.clientWidthWeb page Visible Area height: document.body.clientHeightWeb page Visible Area width: document.body.offsetWidth (including edge width)Web page Visible Area High: document.body.offsetHeight
Web page Visible area width: document.body.clientWidthWeb page Visible Area height: document.body.clientHeightWeb page Visible Area width: document.body.offsetWidth (including edge width)Web page Visible Area High: document.body.offsetHeight
This article describes the status returned by HttpWebResponse to get access addresses.Public ActionResult Monitoringajax (){String url= "www.baidu.com";//url with normal access string url= "www.laibxw.com";//URLs that are not normally
In IE:Document.body.clientWidth ==> Body Object widthDocument.body.clientHeight ==> Body Object HeightDocument.documentElement.clientWidth ==> Visible Area widthDocument.documentElement.clientHeight ==> Visible Area heightIn
Javascript:alert (document.body.clientWidth); Web page visible area width (body)alert (document.body.clientHeight); Web page Visible Area high (body)alert (document.body.offsetWidth); Web page visible area width (body), including border, margin, etc.
in IE:document.body.clientWidth ==> Body Object widthdocument.body.clientHeight ==> Body Object Heightdocument.documentElement.clientWidth ==> Visible area widthdocument.documentElement.clientHeight ==> Visible area heightin
Excerpt from: http://blog.csdn.net/lai_gb/archive/2009/07/04/4320956.aspxIn IE:Document.body.clientWidth ==> Body Object widthDocument.body.clientHeight ==> Body Object HeightDocument.documentElement.clientWidth ==> Visible Area
Javascript:Alert (document.body.clientWidth); Web page visible Area width (body)Alert (document.body.clientHeight); Web page visible Area high (body)Alert (document.body.offsetWidth); Web page visible area width (body), including border, margin, etc.
Web page Visible area width: document.body.clientWidthWeb page Visible Area height: document.body.clientHeightWeb page Visible Area width: document.body.offsetWidth (including edge width)Web page Visible Area High: document.body.offsetHeight
Three ways to get the value of a browserin IE:Document.body.clientWidth ==> Body Object widthDocument.body.clientHeight ==> Body Object HeightDocument.documentElement.clientWidth ==> Visible Area widthDocument.documentElement.clientHeight ==>
Get the browser-side operating system namepublic static string Getosname (){string osVersion = System.Web.HttpContext.Current.Request.Browser.Platform;string useragent = System.Web.HttpContext.Current.Request.UserAgent; if (Useragent.contains ("NT 6.
A few days ago when the project was encountered when the browser scale is not 100%, out of the page is not normal, and found a way to get its proportions to inform the userfunction Detectzoom () {varRatio =0, screen=Window.screen,
In IE:Document.body.clientWidth ==> Body Object widthDocument.body.clientHeight ==> Body Object HeightDocument.documentElement.clientWidth ==> Visible Area widthDocument.documentElement.clientHeight ==> Visible Area heightIn
In IE: document.body.clientWidth ==> body Object widthDocument.body.clientHeight ==> Body Object height document.documentElement.clientWidth ==> visible area widthDocument.documentElement.clientHeight ==> visible Area height in Firefox:Document.body.
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.