1、新建HTML文件

2、创建p和ul ,li标签

3、预览效果如图

4、设置p元素的首个对象样式p:first-child { font-size:40px;}

5、预览效果如图

6、设置li元素的首个对象样式li:first-child { text-decoration:line-through;}

7、预览效果如图

时间:2026-02-15 04:25:00
1、新建HTML文件

2、创建p和ul ,li标签

3、预览效果如图

4、设置p元素的首个对象样式p:first-child { font-size:40px;}

5、预览效果如图

6、设置li元素的首个对象样式li:first-child { text-decoration:line-through;}

7、预览效果如图
