less - 只有在特定的条件下,这种风格才能发挥作用
问题描述
在less
中,我有两个班级:
.business-type, .examine-type {
height: 74px!important;
... // there are many other styles
}
我有一个要求,只有课程是.examine-type
,我想要height
工作,如何实现?
解决方案
您可以通过以下方式轻松访问它:
.examine-type {
height: 74px!important;
}
.business-type, .examine-type {
... // there are many other styles
}
推荐阅读
- docker - Kubernetes (1.10) mountPropagation:双向不工作。
- symfony - 在奏鸣曲管理列表视图中呈现表单
- maven - 带有 mvn 测试的错误 Maven
- oracle - 减少 pl/sql 的过载
- postgresql - 一次更新多行(postgres)
- apache-kafka - kafka 消费者无法获取之前未消费的事件
- python - 树数据结构中的Python递归对象引用
- vba - 选择单元格中的所有形状
- spring-boot - 具有多个路由键的 Spring Boot 流绑定队列
- amazon-web-services - 凭证应限定范围以纠正服务错误 - AWS IOT