使用 CSS 指定元素的底部内边距
cssweb developmentfront end technology更新于 2025/8/22 14:04:17
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>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

