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 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Reponsive design view dimensions are incorrect

  • 3 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 cor-el

more options

I am in the process of building a responsive site, I am using "responsive design view" to show me the dimensions of the page when styling of an element looks incorrect when at a certain screen size. E.g I have created a media query at 990px when an element moves tposition. My media query styling actually takes effect at 860px. When testing this on chrome it appears that the original dimension firefox says my window is at is incorrect when using the dimensions from chrome responsive view my media query and the effects of this media query happen at the same time.

Please note that I am not looking for help with the results of the media query, this works fine when the dimensions for the media query are adjusted :)

I hope this make sense, any help is appreciated!

I am in the process of building a responsive site, I am using "responsive design view" to show me the dimensions of the page when styling of an element looks incorrect when at a certain screen size. E.g I have created a media query at 990px when an element moves tposition. My media query styling actually takes effect at 860px. When testing this on chrome it appears that the original dimension firefox says my window is at is incorrect when using the dimensions from chrome responsive view my media query and the effects of this media query happen at the same time. Please note that I am not looking for help with the results of the media query, this works fine when the dimensions for the media query are adjusted :) I hope this make sense, any help is appreciated!

所有回覆 (3)

more options

Try to set layout.css.devPixelsPerPx to 1.0 (default is -1) on the about:config page.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

Thanks for the reply, this is fine for working on my monitor which is reasonably good quality, but when working on my macbook screen with a much higher resolution it is much to small to be useable.

more options

Adjust the value of layout.css.devPixelsPerPx in 0.1 or 0.05 steps (1.1 or 0.9) until icons or text looks right for you.