简体   繁体   中英

Methods to get the screen resolution before a web page is getting loaded

I want to know the different methods to recognize the screen resolution.

Like

Desktop Resolutions

Tablet Resolutions

Mobile Phones etc;

Starters... You can't execute any query or anything without your page being loaded. Aside that, there are several ways you can check your screen resolutions. You could use the CSS media queries or JavaScript.

See the links below for more insight.

There are other available resources online so just make some extra searches and you'll be good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM