css教程:CSS填充padding屬性的應(yīng)用_CSS教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
The CSS padding properties define the space between the element border and the element content.
CSS填充屬性定元素邊框到內(nèi)部?jī)?nèi)容間的距離
設(shè)置左填充 Set the left padding
This example demonstrates how to set the left padding of a tablecell.
Examples 實(shí)例:
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
設(shè)置右填充 Set the right padding
This example demonstrates how to set the right padding of a tablecell.
Examples 實(shí)例:
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
設(shè)置上填充 Set the top padding
This example demonstrates how to set the top padding of a tablecell.
Examples 實(shí)例:
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
設(shè)置底部填充 Set the bottom padding
This example demonstrates how to set the bottom padding of a tablecell.
Examples 實(shí)例:
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
快速設(shè)置所有填充屬性 All the padding properties in one declaration
This example demonstrates a shorthand property for setting all of the padding properties in one declaration, can have from one to four values.
Examples 實(shí)例:
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
The CSS padding properties define the space between the element border and the element content. Negative values are not allowed. The top, right, bottom, and left padding can be changed independently using separate properties. A shorthand padding property is also created to control multiple sides at once.
可用padding屬性快速設(shè)置各方向填充的屬性
CSS填充屬性定元素邊框到內(nèi)部?jī)?nèi)容間的距離
設(shè)置左填充 Set the left padding
This example demonstrates how to set the left padding of a tablecell.
Examples 實(shí)例:
代碼調(diào)試框 [m.hl5o.cn]
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
設(shè)置右填充 Set the right padding
This example demonstrates how to set the right padding of a tablecell.
Examples 實(shí)例:
代碼調(diào)試框 [m.hl5o.cn]
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
設(shè)置上填充 Set the top padding
This example demonstrates how to set the top padding of a tablecell.
Examples 實(shí)例:
代碼調(diào)試框 [m.hl5o.cn]
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
設(shè)置底部填充 Set the bottom padding
This example demonstrates how to set the bottom padding of a tablecell.
Examples 實(shí)例:
代碼調(diào)試框 [m.hl5o.cn]
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
快速設(shè)置所有填充屬性 All the padding properties in one declaration
This example demonstrates a shorthand property for setting all of the padding properties in one declaration, can have from one to four values.
Examples 實(shí)例:
代碼調(diào)試框 [m.hl5o.cn]
[ 可先修改部分代碼 再運(yùn)行查看效果 ]
The CSS padding properties define the space between the element border and the element content. Negative values are not allowed. The top, right, bottom, and left padding can be changed independently using separate properties. A shorthand padding property is also created to control multiple sides at once.
可用padding屬性快速設(shè)置各方向填充的屬性
相關(guān)CSS教程:
CSS教程Rss訂閱Div+Css教程搜索
CSS教程推薦
猜你也喜歡看這些
- 超鏈接打開(kāi)目標(biāo)(target)的測(cè)試
- 初學(xué)者接觸HTML了解一些HTML標(biāo)記(2)
- HTML表格標(biāo)記教程(17):表格標(biāo)題垂直對(duì)齊屬性VALIGN
- HTML各個(gè)元素對(duì)搜索引擎的權(quán)重比例
- HTML初級(jí)教程title文檔標(biāo)題
- HTML表格標(biāo)記教程(32):單元格的水平對(duì)齊屬性ALIGN
- HTML表格標(biāo)記教程(36):表頭的背景色屬性BGCOLOR
- HTML表格標(biāo)記教程(20):行的背景色屬性BGCOLOR
- 網(wǎng)頁(yè)表單設(shè)計(jì)實(shí)例技巧五則
- HTML中級(jí)教程表格
- 相關(guān)鏈接:
- 教程說(shuō)明:
CSS教程-css教程:CSS填充padding屬性的應(yīng)用
。