简体   繁体   中英

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. Is it possible to turn off properties like css grid inside of the chrome or canary?

https://caniuse.com/#search=shape-outside上检查后,下载不支持此功能的旧版 Chrome。

The CSS Feature Toggles plugin for Chrome can do this. It adds a tab in the developer toolbox with checkboxes for various CSS features that are popular for browsers to not implement, like Grid:

在此处输入图片说明

Checking the relevant box will disable the respective feature.

Just comment out 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM