CSS, Uncategorized class内子元素樣式指定 9 月 11, 2016 ianchen0419 發表迴響 目的 修改某class内的某元素 範例 <div class="card"> <h1>文字一</h1> <h2>文字二</h3> <p>内文</p> <div> .class h2{ color: red; } 結果 只有h2的「文字二」會變成紅字。