bootstrap源代码中table-condensed > thead > tr > th这样"<"写法是什么意思

源码请查看bootstrap.css文件第1442行~第1449行:

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
padding: 5px;
}


冯小亮
浏览 2792回答 4
4回答

5E

table-condensed下的thead ,thead下的tr,tr下的th,不知道我这样说你能明白么?就是说,只在table-condensed下面的thead有后面的样式,其他情况下的thead样式不在这里设定。

echo_kinchao

直接子集   只能是儿子 不能是孙子

sunfloweryll

>是css的父子选择器,指选择的是直接子元素,不包括孙子。注意和后代选择器区分一下就行

荼酒

父辈元素的子辈元素,不包括孙辈
打开App,查看更多内容
随时随地看视频慕课网APP