padding

英 [?p?d??]? ?美 [?p?d??]??

n.襯墊;襯料;贅語(yǔ);廢話(huà)

v.給…裝襯墊,加墊子( pad的現(xiàn)在分詞 );步行,放輕腳步走

bottom

英 [?b?t?m]? ?美 [?bɑ:t?m]??

n.底部;末端;臀部;盡頭

adj.底部的

vt.裝底;測(cè)量深淺;查明真相

vi.到達(dá)底部;建立基礎(chǔ)

第三人稱(chēng)單數(shù): bottoms 復(fù)數(shù): bottoms 現(xiàn)在分詞: bottoming 過(guò)去式: bottomed 過(guò)去分詞: bottomed

css padding-bottom屬性 語(yǔ)法

作用:設(shè)置元素的下內(nèi)邊距(底部空白)。

說(shuō)明:該屬性設(shè)置元素下內(nèi)邊距的寬度。行內(nèi)非替換元素上設(shè)置的下內(nèi)邊距不會(huì)影響行高計(jì)算,因此,如果一個(gè)元素既有內(nèi)邊距又有背景,從視覺(jué)上看可能延伸到其他行,有可能還會(huì)與其他內(nèi)容重疊。不允許指定負(fù)內(nèi)邊距值。

注釋?zhuān)?/strong>不允許使用負(fù)值。所有主流瀏覽器都支持 padding-bottom 屬性。任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。

css padding-bottom屬性 示例

<html>
<head>
<style type="text/css">
td {padding-bottom: 20px}
</style>
</head>

<body>
<table border="1">
<tr>
<td>
這個(gè)表格單元擁有下內(nèi)邊距。
</td>
</tr>
</table>
</body>

</html>

運(yùn)行實(shí)例 ?

點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線(xiàn)實(shí)例