我可以测试一个网站是响应式设计吗 [英] Can i test a website is responsive design

查看:44
本文介绍了我可以测试一个网站是响应式设计吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所说:有没有一种方法可以测试网站是否responsive在后台使用node或其他脚本.

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.

现在我想使用 WebView 在手机上显示网站,所以我想知道网站是否响应,如果它是 responsive,我会显示它,或者不是

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

推荐答案

响应式"一词通常仅表示网站使用 CSS 媒体选择器来根据设备属性修改其布局.您可能可以下载任何链接的 CSS 并检查媒体选择器的使用情况,但这不太可能是检测响应式网站的万无一失的方法.

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.

你到底需要做什么?

这篇关于我可以测试一个网站是响应式设计吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆