這是一個愚蠢的問題,但很好。什麼版本是CSS中的「>」?我在谷歌找不到它,因爲我不知道這個名字。:懸停在「>」在CSS
例子。
CSS
.test {
width:200px;
height:200px;}
.test .color {
width:50px;
height:50px;
float:left;
background:red;}
.test:hover > .color {
background:blue;}
HTML
<div class="test">
<div class="color"></div>
</div>
它是什麼版本的CSS? 2或3?謝謝
可能重複[?怎麼是在CSS中使用或「>」字符「大於」(http://stackoverflow.com/questions/746525/how-is-the-more-or-character-used-in-css) –