tr >th{text-align.left;background:grey;color:white}属于哪类选择器?tr >th:only-of-type{text-align.right; background: lightgrey;color:grey}这个选择器前面加上 tr>th,又是什么意思呢?90后菜鸟。。。感谢大神赐教
这是css的选择,你可以百度一下css3选择器,查看具体的介绍,这种选择器定义了tr作为父类的th的样式;