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 技術支援網站

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

了解更多

Responsive Design View addon: Not working for certain viewscreen sizes

more options

I have been using this add-on for a while now for my html sites (as I convert them to responsive) and the tool is very handy.

However since the beginning I have noticed that some of my media queries do not show properly in the addon (ie...via Control M to view). Specifically --- 414px, 667px, and 800 px. In order to get the view to work for these media query settings I always have to put the code in the previous media query for it to take.

These are the sizes I usually view (and have set up within the add-on) to check. Using Maxwidth ie @media only screen and @media only screen and (max-width:360px){ }

Computers/Monitors 1920 1600 1536 1280

Tablets 1024 853 800 (Gallaxy Tablet 10.1) 768

Phones 736 720 667 (iPhone 6) 640 600 568 480 414 (iPhone 6+) 375 360 320

Are these not valid widths? Or is there some other reason why the add on will not view them? I hope you can assist as I'm working on a project right now and am frustrated once again by this limitation.  :)

Thanks

I have been using this add-on for a while now for my html sites (as I convert them to responsive) and the tool is very handy. However since the beginning I have noticed that some of my media queries do not show properly in the addon (ie...via Control M to view). Specifically --- 414px, 667px, and 800 px. In order to get the view to work for these media query settings I always have to put the code in the previous media query for it to take. These are the sizes I usually view (and have set up within the add-on) to check. Using Maxwidth ie @media only screen and @media only screen and (max-width:360px){ } Computers/Monitors 1920 1600 1536 1280 Tablets 1024 853 800 (Gallaxy Tablet 10.1) 768 Phones 736 720 667 (iPhone 6) 640 600 568 480 414 (iPhone 6+) 375 360 320 Are these not valid widths? Or is there some other reason why the add on will not view them? I hope you can assist as I'm working on a project right now and am frustrated once again by this limitation. :) Thanks

所有回覆 (1)

more options

Perhaps there is a rounding error in how Firefox is measuring the size of the responsive window? Does it make any difference if you force 96ppi rendering as follows:

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the filter box, type or paste pix and pause while the list is filtered

(3) Double-click layout.css.devPixelsPerPx and change its value from -1.0 (which uses the Windows text size as a global zoom percentage) to 1.0 (which corresponds to 96ppi)

To restore normal rendering, you can right-click > Reset the preference.