本文介绍了移动网站调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firefox 的普通桌面浏览器中运行的网站可以使用 Firebug 进行调试。


解决方案

在大多数情况下,最好使用您最喜欢的浏览器并尝试以模拟移动设备的行为。您可以使用Firefox附加组件,如:




  • 用户代理切换器:伪造不同的移动用户代理(已经附带少数移动代理预定义)

  • 修改标题:假装有时需要的其他http标头(x-wap-profile,x-msisdn,Accept)



    • 当然你最喜欢的附加组件用于调试和开发


      A website running in a normal desktop browser like Firefox can be debugged with Firebug.

      解决方案

      In most cases it is better to use your favorite browser and try to mimic the behaviour of a mobile Device. You can use Firefox Add-Ons like:

      • User Agent Switcher: to fake different mobile User-Agents (already comes with e few mobile Agents predefined)
      • Modify Headers: to fake some additional http-Headers that are sometimes needed (x-wap-profile, x-msisdn, Accept)

      And of course your favorite Add-Ons for Debugging and Development

      这篇关于移动网站调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 16:17