:first-child 1、匹配第一个 元素p:first-child { color: red; } some textsome text2、匹配所有 元素中的第一个 元素p > i:first-child { font-weight:bold; } some text. some te HTML 2024-01-22 276 点赞 4 评论 418 浏览