简体   繁体   English

如何在 chrome 中关闭 css 的功能以进行测试,例如 css grid

[英]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.

相关问题 我可以关闭CSS中的链接,例如书签安装页面吗? - Can I turn off a link in CSS, e.g. for a bookmarklet install page? 如何在 a.css 文件中使用在 a.scss 文件中声明的变量(例如 $blueColor:#ffffff)? - How can I use variables declarated in a .scss file (e.g. $blueColor: #ffffff) in a .css file? 如何修改 Wicket 活动指示器的 css(例如位置)? - How can I modify css (e.g. position) of Wicket's activity indicator? 如何使我的 CSS 切换 state 变化更平滑,例如通过过渡? - How can I make my CSS toggle state changing smoother e.g. with a transition? Ajax的新手...在ajax调用后,如何将CSS恢复为默认值? (例如,重新加载CSS) - New to Ajax…how can I return my CSS to it's default value after an ajax call? (e.g. reload CSS) 如何找到使用特定字体系列的 css 类(例如 chrome 开发工具)? - How to find css classes (in e.g. chrome dev tools) that use a specific font-family? div不能使用外部CSS文件设置样式(例如背景) - div can not be styled (e.g. background) with external css file 我可以在CSS类名或ID中安全地使用unicode字符(例如重音符号)吗? - Can I safely use unicode characters (e.g. accents) in CSS class names or ids? 如何将静态 CSS 添加到 Dojo 7 应用程序,例如 FontAwesome? - How to add static CSS to Dojo 7 application e.g. FontAwesome? 如何使用 React 多次添加相同的 CSS 属性(例如背景图像)? - How do I add the same CSS property (e.g. background-image) multiple times with React?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM