我正在使用一个可简化为以下示例的项目进行项目工作。你称之为CSS中使用的技术名称是什么?你在CSS中选择基于其祖先的元素的技术是什么?
<html>
<head>
<style type="text/css">
#numberone #numbertwo #numberthree
{
color: red;
}
</style>
</head>
<body>
<div id="numberone">
<div id="numbertwo">
<div id="numberthree">
This is red
</div>
</div>
</div>
<div id="numberthree">
This is not red
</div>
</body>
</html>
如果这是您的真实代码,您的标记无效。 ID值在文档中必须是唯一的。 –
你的问题不清楚。 – Simone