首页 > 解决方案 > CSS:如何仅在特定类中处理特定类?

问题描述

我正在尝试解决flex-control-navflex-control-pagingflex-direction-nav - 但仅限于它们位于fusion-recent-posts内时。从几个小时开始修修补补,但尚未找到解决方案,这也不会影响其他滑块。

在此处输入图像描述

希望这里有人可以帮助我吗?

标签: cssclasscss-selectors

解决方案


在常规 CSS 中,它是:

.fusion-recent-posts .flex-control-nav {
  // your styles
}

.fusion-recent-posts .flex-control-paging {
  // your styles
}

.fusion-recent-posts .flex-direction-nav {
  // your styles
}

推荐阅读