首页
CSS
CSS 内边距
试用:padding-bottom 属性
运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> p.padding { padding-bottom:2cm; } p.padding2 { padding-bottom:50%; } </style> </head> <body> <h1>The padding-bottom Property</h1> <p>This is a text with no bottom padding. This is a text with no bottom padding. This is a text with no bottom padding.</p> <p class="padding">This text has a bottom padding of 2 cm. This text has a bottom padding of 2 cm. This text has a bottom padding of 2 cm.</p> <p class="padding2">This text has a bottom padding of 50%. This text has a bottom padding of 50%. This text has a bottom padding of 50%.</p> </body> </html>