博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
THE BOX MODEL
阅读量:5149 次
发布时间:2019-06-13

本文共 1384 字,大约阅读时间需要 4 分钟。

Review

In this lesson, we covered the four properties of the box model: height and width, padding, borders, and margins. Understanding the box model is an important step towards learning more advanced HTML and CSS topics. Let's take a minute to review what you learned.

  1. The box model comprises a set of properties used to create space around and between HTML elements.
  2. The height and width of a content area can be set in pixels or percentage.
  3. Borders surround the content area and padding of an element. The color, style, and thickness of a border can be set with CSS properties.
  4. Padding is the space between the content area and the border. It can be set in pixels or percent.
  5. Margin is the amount of spacing outside of an element's border.
  6. Horizontal margins add, so the total space between the borders of adjacent elements is equal to the sum of the right margin of one element and the left margin of the adjacent element.
  7. Vertical margins collapse, so the space between vertically adjacent elements is equal to the larger margin.
  8. margin: 0 auto horizontally centers an element inside of its parent content area, if it has a width.
  9. The overflow property can be set to display, hide, or scroll, and dictates how HTML will render content that overflows its parent's content area.
  10. The visibility property can hide or show elements.

转载于:https://www.cnblogs.com/young-ma/p/7764447.html

你可能感兴趣的文章
Struts2返回JSON数据的具体应用范例
查看>>
js深度克隆对象、数组
查看>>
c++ 贪吃蛇
查看>>
socket阻塞与非阻塞,同步与异步
查看>>
图论求割点模板
查看>>
poj3903 Stock Exchange 二分+dp
查看>>
Okhttp代码
查看>>
点击树结构实现变色
查看>>
【IT笔试面试题整理】字符串的排列
查看>>
总结常用Linux命令
查看>>
谈谈ASP.NET模版(皮肤)机制的实现
查看>>
个人作业-测试项目
查看>>
C++Builder组件
查看>>
使用css选择器来定位元素
查看>>
MySQL:数据备份
查看>>
linux 实战使用,上传git 解决冲突
查看>>
时域离散信号的傅里叶变换
查看>>
有谁知道什么工具测试IOS手机上APP的性能软件啊?
查看>>
postman
查看>>
c#读取Excel的列名问题
查看>>