0
嗯,這是一個非常簡單的問題。使用>和沒有區別CSS
我真的不明白在CSS中使用>和什麼都沒有什麼區別。
HTML
<p>
Some text <h3>here</h3>
</p>
CSS
p > h3{
text-transform: uppercase;
}
p h3{
text-transform: lowercase;
}
有人能解釋我這個?
謝謝。
檢查this..http ://stackoverflow.com/questions/3225891/what-does-the-greater-than-sign-css-selector-mean – nik
請參閱:http://net.tutsplus.com/tutorials/html-css-techniques/the -30- css-selectors-you-must-memorize/ –
你知道段落不允許包含標題,是不是......? – CBroe