Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Change Developer Tools Responsive Design Mode default resolution

  • 3 个回答
  • 1 人有此问题
  • 5 次查看
  • 最后回复者为 jab_creations

more options

I'm a web developer and I've been using the web developer Responsive Design Mode for some testing.

Unfortunately the default resolution is 320x480 and while I do occasionally test this resolution (it's our bare minimal mobile resolution) it's obnoxious to have to always choose the drop down menu to change the resolution every-single-time!

I've already searched through about:config settings for queries such as 320 and 480 separately.

So: how do I change the Responsive Design Mode default resolution?

I'm a web developer and I've been using the web developer Responsive Design Mode for some testing. Unfortunately the default resolution is 320x480 and while I do occasionally test this resolution (it's our bare minimal mobile resolution) it's obnoxious to have to always choose the drop down menu to change the resolution every-single-time! I've already searched through about:config settings for queries such as 320 and 480 separately. So: how do I change the Responsive Design Mode default resolution?
已附加屏幕截图

所有回复 (3)

more options

Your browser identified itself as Waterfox on a basis of an older version of Firefox, so this may or may not apply to you.

My Firefox always re-uses the last resolution. In about:config, I notice these preferences, which could be the way that happens:

  • devtools.responsive.userAgent
  • devtools.responsive.viewport.height
  • devtools.responsive.viewport.pixelRatio
  • devtools.responsive.viewport.width

Or maybe it's something in

[profile.folder]\storage\permanent\indexeddb+++fx-devtools\idb

more options

Didn't you found these two prefs ?

  • devtools.responsive.viewport.height = 480
  • devtools.responsive.viewport.width = 320
more options

@jscher2000 That works in Firefox however since they destroyed Firefox as of 57.0 I rarely test it.

I did a fairly thorough search of the Waterfox Classic files and I just can't find anything correlating to a preference let alone the DOM used for the Responsive Design Mode tool.