css::first-child设置首个子对象的样式

 时间:2026-02-15 04:25:00

1、新建HTML文件

css::first-child设置首个子对象的样式

2、创建p和ul ,li标签

css::first-child设置首个子对象的样式

3、预览效果如图

css::first-child设置首个子对象的样式

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

css::first-child设置首个子对象的样式

5、预览效果如图

css::first-child设置首个子对象的样式

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

css::first-child设置首个子对象的样式

7、预览效果如图

css::first-child设置首个子对象的样式

  • Axure:如何制作一本书的目录?
  • axure7.0 实现百分比形式的进度条
  • AxureRP基本使用教程详解
  • Axure RP 9 教程—能获取本地时间时钟
  • Axure制作:一则带百分比的进度条案例
  • 热门搜索
    微博怎么看最近访客 打印机扫描怎么用 家里潮湿怎么办 安琪酵母怎么用 鸡爪怎么烧好吃 怀孕感冒怎么办 豁然开朗的近义词 电脑配置怎么看高低 韩国女明星发型 吹空调感冒吃什么药