学习使用 CSS 设置 HTML 样式
¥Prerequisites
在尝试任何 CSS 之前,你应该学习 HTML 基础知识。我们建议你首先学习我们的 HTML 简介 模块。
¥You should learn the basics of HTML before attempting any CSS. We recommend that you work through our Introduction to HTML module first.
一旦你了解了 HTML 的基础知识,我们建议你同时进一步学习 HTML 和 CSS,在两个主题之间来回切换。这是因为当你应用 CSS 时,HTML 会变得更有趣,学习起来也更有趣,而且如果不了解 HTML,你就无法学习 CSS。
¥Once you understand the fundamentals of HTML, we recommend that you learn further HTML and CSS at the same time, moving back and forth between the two topics. This is because HTML is far more interesting and much more fun to learn when you apply CSS, and you can't learn CSS without knowing HTML.
在开始本主题之前,你还应该熟悉如何使用计算机和被动使用网络(即,只是查看、消费内容)。你应该设置一个基本的工作环境(如 安装基本软件 中详述),并了解如何创建和管理文件(如 处理文件 中详述) - 这两者都是我们 开始使用网络 完整初学者模块的一部分。
¥Before starting this topic, you should also be familiar with using computers and using the web passively (i.e., just looking at it, consuming the content). You should have a basic work environment set up, as detailed in Installing basic software, and understand how to create and manage files, as detailed in Dealing with files — both of which are parts of our Getting started with the web complete beginner's module.
还建议你在继续本主题之前完成 开始使用网络,特别是如果你对 Web 开发完全陌生。然而,CSS 基础知识 文章中介绍的大部分内容也包含在我们的 CSS 第一步 模块中,尽管更详细。
¥It is also recommended that you work through Getting started with the web before proceeding with this topic, especially if you are completely new to web development. However, much of what is covered in its CSS basics article is also covered in our CSS first steps module, albeit in a lot more detail.