PHP前端开发

使用 CSS 指定元素的底部填充

百变鹏仔 4周前 (09-19) #CSS
文章标签 元素

padding-bottom 指定元素的底部填充。它设置元素的底部填充(空间)。这可以采用长度为 % 的值。

示例

 <html>    <head>    </head>    <body>       <p style = "padding-bottom: 20px; border:1px solid red;">          This is demo content.       </p>       <p style = "padding-bottom: 20%; border:1px solid red;">          This is another demo content.       </p>    </body></html>