We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题
The text was updated successfully, but these errors were encountered:
@supports <条件规则> { /* 特殊样式规则 */ }
eg:
@supports (display:flex) { section { display: flex } ... }
意思就是如果支持 display: flex 的话,就在 section 中应用
display: flex
在 window 上提供方法 CSS.supports('属性', '属性值')
const supportsFlex = CSS.supports("display", "flex");
当然,使用前先判断下兼容性如何
var supportsCSS = !!((window.CSS && window.CSS.supports) || window.supportsCSS || false); // window.supportsCSS 为旧版 api
Sorry, something went wrong.
No branches or pull requests
如题
The text was updated successfully, but these errors were encountered: