freeCodeCamp/guide/chinese/certifications/responsive-web-design/basic-html-and-html5/nest-many-elements-within-a.../index.md

11 lines
576 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Nest Many Elements within a Single div Element
localeTitle: 在单个div元素中嵌套许多元素
---
## 在单个div元素中嵌套许多元素
使用通用目标标记作为`div`来包装多个元素允许开发人员将共同样式应用于每个包装元素,对具有相同含义的元素进行分组,以创建不同的布局“包”等。
关于此挑战您必须对代码中已存在的列表进行分组您可以在段落用作无序列表标题之前使用开始div标记并将结束标记放在有序列表的正下方。
祝你好运!