[英]How can I turn off features of css in chrome for testing e.g. css grid
I'm trying to see how my app will look when css grid isn't available.我正在尝试查看当 css 网格不可用时我的应用程序的外观。 Is it possible to turn off properties like css grid inside of the chrome or canary?是否可以关闭 chrome 或 Canary 内部的 css grid 等属性?
在https://caniuse.com/#search=shape-outside上检查后,下载不支持此功能的旧版 Chrome。
The CSS Feature Toggles plugin for Chrome can do this. Chrome 的CSS Feature Toggles插件可以做到这一点。 It adds a tab in the developer toolbox with checkboxes for various CSS features that are popular for browsers to not implement, like Grid:它在开发人员工具箱中添加了一个选项卡,其中包含各种 CSS 功能的复选框,这些功能在浏览器中很流行,但无法实现,例如 Grid:
Checking the relevant box will disable the respective feature.选中相关框将禁用相应的功能。
Just comment out CSS Grid.只需注释掉 CSS Grid。
/* .container { display: grid; } */
Or uncheck the rule in dev tools.或者在开发工具中取消选中规则。
Chrome will then ignore all grid properties, just like a browser would that lacks support for the feature. Chrome 将忽略所有网格属性,就像浏览器不支持该功能一样。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.