📜  css 将样式应用于直接子级 - CSS 代码示例

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

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

.parent > .child { color:red; }