开发者

can browsers select scripts based on user's viewing resolution?

开发者 https://www.devze.com 2023-04-07 08:47 出处:网络
I want to implement a JQuery script that requires the browser\'s width at 100% which depends solely on the user\'s viewing resolution. Can i prepare multiple scripts for the different resolutions for

I want to implement a JQuery script that requires the browser's width at 100% which depends solely on the user's viewing resolution. Can i prepare multiple scripts for the different resolutions for the browser to automatically detect and choose or does there need to be a single script with if/then clause开发者_StackOverflows?


Apparently the can via Javascript using screen.width and screen.height.


While I don't know what exactly you are trying to implement, you might want to look into CSS media queries as an interesting approach to adaptive Layouts.

0

精彩评论

暂无评论...
验证码 换一张
取 消