首页 > 解决方案 > 只有在特定的条件下,这种风格才能发挥作用

问题描述

less中,我有两个班级:

.business-type, .examine-type {
  height: 74px!important;

  ...  // there are many other styles
}

我有一个要求,只有课程是.examine-type,我想要height工作,如何实现?

标签: less

解决方案


您可以通过以下方式轻松访问它:

.examine-type {
  height: 74px!important;
}

.business-type, .examine-type {

  ...  // there are many other styles
}

推荐阅读