跳到主要内容
学院
初级 代码街区

CSS

现代网页的布局、色彩与动效。

CSS turns plain HTML into the pages you love to use. This track starts at your very first style rule and takes you to modern layouts: selectors and the cascade, the box model, typography for Persian text, oklch colors, Flexbox and Grid, responsive and right-to-left design, motion, custom properties, nesting, :has() and @layer.

Every lesson is short, practical and checked with quizzes, and the examples come from a dark, modern interface.

课时
25
时长
3 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Read and write CSS rules, and predict which rule wins in the cascade
  • Size and space elements confidently with the box model and modern units
  • Build real layouts with Flexbox, Grid and subgrid
  • Make pages that adapt to any screen and work in Persian right-to-left
  • Add smooth, accessible motion and organise styles with modern CSS

学习旅程

  1. 1
    第 1 单元

    CSS basics

    What CSS is, how a rule is built, how selectors find elements, and how the cascade picks a winner.

    0 / 4
  2. 2
    第 2 单元

    The box model

    Every element is a box: content, padding, border and margin, and how boxes flow on the page.

    0 / 3
  3. 3
    第 3 单元

    Text and color

    Fonts and font stacks, comfortable Persian text, relative units, oklch colors and readable contrast.

    0 / 3
  4. 4
    第 4 单元

    Flexbox

    Lay items out in a row or a column, align them, and share the space fairly.

    0 / 3
  5. 5
    第 5 单元

    Grid

    Two-dimensional layouts with columns, rows, named areas and subgrid.

    0 / 3
  6. 6
    第 6 单元

    Responsive and RTL

    Mobile-first media queries, container queries, fluid type with clamp() and logical properties for Persian layouts.

    0 / 4
  7. 7
    第 7 单元

    Motion and modern CSS

    Transitions, keyframes, smooth and accessible motion, custom properties, nesting, :has() and @layer.

    0 / 5

快速导航