Can i test a website is responsive design

回眸只為那壹抹淺笑 提交于 2020-01-07 05:23:08

问题


As the title says: is there a method to test a website is responsive use node or other script on background.

there is many web sites provide screenshot, but i want to use script to check it.

now i want to use WebView to show website on phone so i want to know if the website is responsive, if it is responsive, i will show it, or not

there is method to save all website's host name, and when there is another request, i will check data table


回答1:


The term responsive generally just indicates that the website uses CSS media selectors in order to modify its layout based upon device attributes. You could probably download any linked CSS and check for the use of media selectors but this is unlikely to be a bullet-proof way of detecting for a responsive site.

Additionally, there's no way you can detect what scripting language is used on the backend of a website. You could guess based upon headers and other information coming back in a response but, again, it's not a bullet-proof way of determining whether the page is dynamically generated or not.

What exactly do you need to do this for?



来源:https://stackoverflow.com/questions/24527396/can-i-test-a-website-is-responsive-design

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!