css padding-top property
Translation results:
padding
英[ˈpædɪŋ] 美[ˈpædɪŋ]
n.Padding; lining; redundant language; nonsense
v. To pad something, to add a cushion (the present participle of pad); to walk, to walk lightly
top
英[tɒp] 美[tɑ:p]
n. Top, top; (box) cover, (book pages, etc.) upper column; chief; top
adj. The highest; top; first-class; largest
vt. Form the top; reach the top of…; be at the forefront of…; lead
vi. Summarize; transcend; tower; end
Third person singular: tops Plural: tops Present participle: topping Past tense: topped Past participle: topped
css padding-top propertysyntax
Function: Set the top padding (space) of the element.
Description: This attribute sets the width of the padding on the element. Top padding set on inline, non-replaced elements does not affect line height calculations, so if an element has both padding and background, it may visually extend to other lines and possibly overlap other content. . Negative padding values are not allowed.
Note: Negative values are not allowed. All major browsers support the padding-top attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).
css padding-top propertyexample
<html> <head> <style type="text/css"> td {padding-top: 20px} </style> </head> <body> <table border="1"> <tr> <td> 这个表格单元拥有上内边距。 </td> </tr> </table> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance