我正在使用一個可簡化爲以下示例的項目進行項目工作。你稱之爲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