全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Box model?

Definition 31.7 Primary & Middle School Computer Science · 第 31 章 — Web Pages: HTML and CSS

In the box model, the browser draws every element as a rectangle: its content, surrounded by an inner space, the padding; then a border; then an outer space, the margin, that keeps other boxes away.

The box of a paragraph with style.css: the content, the padding, the border (blue) and the margin, to scale.
The box of a paragraph with style.css: the content, the padding, the border (blue) and the margin, to scale.
The top of the same HTML page with the two style sheets: only the CSS changed.
The top of the same HTML page with the two style sheets: only the CSS changed.
在原文中阅读 →