📜  css 选择所有直接子级 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:36.548000             🧑  作者: Mango

代码示例2
/*
Use the ">" selector to apply css to direct children of a parent element.
example: https://jsfiddle.net/dbeachnau/54w6x0pj/2/
*/

.parent > .child { color:red; }