如何从Localhost检查我的网站的不同设备兼容性? [英] How Do I Check Differnt Device Compatability Of My Website From Localhost ?

查看:66
本文介绍了如何从Localhost检查我的网站的不同设备兼容性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii,



我正在研究asp.net项目,我想检查一下我的网站将如何在不同的设备(分辨率)上查看。因为我想在开发过程中测试这个,我可以检查一下吗?



我在网上查了一下,但他们似乎测试了现场网站,现在是localhst

Hii ,

I am working on asp.net project , and i wanted to check how my webiste will look on differnt devices (resolutions) . Since i wanted to test this while developing is there anything from which i can check ??

I have checked online , but they seems to test live webistes and now localhst

推荐答案

Chrome具有出色的仿真功能。



点击F12获取开发工具

Ctrl + Shift + M切换到设备模式。



你可以从左上角的最左下角选择不同的设备,你可以节制带有下拉列表的带宽。



最棒的是,Chrome还会尝试模拟浏览器上下文,因此它会在您的网站上显示为设备模拟,但很少使用该功能
Chrome has great emulation functionality.

Hit F12 to get the dev tools up
Ctrl+Shift+M to toggle to the device mode.

You can select different devices from the top left most drop-down and you can throttle the bandwidth with the dropdown next to that.

The great thing is that Chrome with also try to emulate the browser context so it will appear to your website as the device it is emulating, but that functionality is rarely used


除了@Andy的解决方案,如果你能负担得起一些价格,你也可以在所有主要平台的几乎所有浏览器上进行测试。 />


查看本网站进行试用 -

https://www.browserstack.com/ [ ^ ]



您也可以测试本地托管的网站。



希望,它有助于:)
In addition to @Andy's solution, you can also do the testing with almost all the browsers in all major platforms if you can afford some price.

Check this site for trial-
https://www.browserstack.com/[^]

You can test locally hosted sites too.

Hope, it helps :)


恐怕无法做到这一点。 Browserstack是最好的解决方案,但除此之外,您需要在实际设备上进行测试。模拟器只是更改屏幕大小和浏览器代理,它们实际上并不模拟页面在该设备上的外观,或者滚动的速度,插件的工作方式等。



在所有设备上进行测试总是很难。公司要么拥有要测试的物理设备(或者至少是主要的设备),要让员工在他们拥有的任何设备上进行测试,或者使用像browserstack这样的东西。这些都不是你的选择所以你只需要希望如果它在所有桌面浏览器上都可以在设备上使用它。
There is no way of doing this I'm afraid. Browserstack is the best solution, but other than that you need to test them on the actual devices themselves. Emulators just change the screen size and browser agent, they don't actually emulate how the page will look on that device, or how fast it will scroll, how your plug-ins will work etc.

Testing on all devices is always a hard thing to do. Companies either have the physical devices to test on (or at least the major ones), get employees to test on whatever devices they own, or use something like browserstack. None of those are options for you so you'll just need to hope that if it's ok on all desktop browsers that it's going to be ok on devices too.


这篇关于如何从Localhost检查我的网站的不同设备兼容性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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