Style Attributes | Padding 样式属性|填充:

Padding is the amount of space that is added between the perimeter of an HTML element and its flow content. In other words padding defines the space between the element’s border and its flow content. The amount of padding that is used is defined by a measurement in pixels.

Padding是在HTML元素的周长与其流内容之间添加的空间量。换句话说,填充定义了元素边框与其流数据的内容之间的空间。使用的填充量由以像素为单位的测量值定义。

Syntax 语法:

The padding attribute is written inside brackets as style-name{padding:__px}.

填充属性作为样式名{padding:u px}写入括号内。

Example 例:

Continue to the next example: Style Attributes – Background