How to get the resolution currently displayed:
In many applications, depending on the display resolution to adjust the different effects, this time to get the current browser resolution is a key, the following is a brief introduction to how to implement this function, code examples are as follows:
<!DOCTYPE HTML><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><Metaname= "Author"content= "http://www.51texiao.cn/" /><title>Ant Tribe</title></Head><Body><Scripttype= "Text/javascript">document.write ('current Browser resolution: \ n' +Screen.width+ '*' +Screen.height+ 'Pixels');</Script></Body></HTML>
The above code can get the resolution of the current browser, the code is relatively simple, here is not more introduction.
The original address is: http://www.51texiao.cn/javascriptjiaocheng/2015/0405/137.html
How to get the resolution currently displayed