Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html CSS选择器:如何选择div中不是直接父级的按钮_Html_Css_Css Selectors - Fatal编程技术网

Html CSS选择器:如何选择div中不是直接父级的按钮

Html CSS选择器:如何选择div中不是直接父级的按钮,html,css,css-selectors,Html,Css,Css Selectors,我有以下代码: 服务 xyz 我们的服务 首先 第二 第三 更多 如何通过使用classservicebutton“引用”第一个div来为CSS选择标签为“More”的按钮 .servicebutton>.button\u主题{…} 不起作用 .plan footer>.button主题{…} 确实有效,但我需要使用第一个div元素中的classservicebutton进行选择 提前谢谢 问候 轰。只要沿着链条一直走到你要找的元素 .servicebutton.plan foot

我有以下代码:


服务

xyz

我们的服务
  • 首先
  • 第二
  • 第三
更多
如何通过使用class
servicebutton
“引用”第一个div来为CSS选择标签为“More”的按钮

.servicebutton>.button\u主题{…}
不起作用

.plan footer>.button主题{…}
确实有效,但我需要使用第一个
div
元素中的class
servicebutton
进行选择

提前谢谢


问候

轰。只要沿着链条一直走到你要找的元素

.servicebutton.plan footer.button\u标签{
背景颜色:蓝色;
}

服务

xyz

我们的服务
  • 首先
  • 第二
  • 第三
更多
只需删除
-
.servicebutton.button\u标签{…}