Chrome 设备模式在有 none 的地方显示背景颜色
Chrome device mode shows background color where there is none
我的网站在所有主流浏览器中运行良好,包括 Chrome 桌面和移动浏览器。现在我注意到,当在 Chrome devtools (Chrome 46) 中进入设备模式时,未设置背景颜色的页面部分显示为深灰色。检查此区域中的元素时 none 设置了背景色。
正如我之前提到的,这不会发生在 Chrome 移动设备或任何其他浏览器上。
站点是here。它仅在首次加载页面时发生。 (在网站上四处点击后,body 元素设置了白色背景颜色,故障不再发生。)
知道是什么原因造成的吗?
更新: Gabee 在下面指出:
Unable to reproduce on the latest Canary with the new Device Mode (but I can on the stable), so (...) [y]ou just need to wait for the next update (or two?) for the fix to land
我认为这已经解决了。
正如 Gabee 指出的那样:
Unable to reproduce on the latest Canary with the new Device Mode (but I can on the stable), so (...) [y]ou just need to wait for the next update (or two?) for the fix to land
我认为这已经解决了。
我的网站在所有主流浏览器中运行良好,包括 Chrome 桌面和移动浏览器。现在我注意到,当在 Chrome devtools (Chrome 46) 中进入设备模式时,未设置背景颜色的页面部分显示为深灰色。检查此区域中的元素时 none 设置了背景色。
正如我之前提到的,这不会发生在 Chrome 移动设备或任何其他浏览器上。
站点是here。它仅在首次加载页面时发生。 (在网站上四处点击后,body 元素设置了白色背景颜色,故障不再发生。)
知道是什么原因造成的吗?
更新: Gabee 在下面指出:
Unable to reproduce on the latest Canary with the new Device Mode (but I can on the stable), so (...) [y]ou just need to wait for the next update (or two?) for the fix to land
我认为这已经解决了。
正如 Gabee 指出的那样:
Unable to reproduce on the latest Canary with the new Device Mode (but I can on the stable), so (...) [y]ou just need to wait for the next update (or two?) for the fix to land
我认为这已经解决了。