c 设置html selector,html - CSS Selector "(A or B) and C"? - Stack Overflow

这篇博客探讨了标准CSS的局限性,并推荐了LESS和SASS两个项目,它们扩展了CSS语法,引入了变量、嵌套规则等特性,帮助开发者编写更结构化的CSS代码。虽然浏览器不直接支持这些扩展语法,但LESS和SASS提供了编译器,将源代码转换为标准CSS,方便部署到网站上。
摘要由CSDN通过智能技术生成

No. Standard CSS does not provide the kind of thing you're looking for.

However, you might want to look into LESS and SASS.

These are two projects which aim to extend default CSS syntax by introducing additional features, including variables, nested rules, and other enhancements.

They allow you to write much more structured CSS code, and either of them will almost certainly solve your particular use case.

Of course, none of the browsers support their extended syntax (especially since the two projects each have different syntax and features), but what they do is provide a "compiler" which converts your LESS or SASS code into standard CSS, which you can then deploy on your site.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值