运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> p.ex1 { border: 1px solid red; padding-top: 2em; } </style> </head> <body> <h1>The padding-top Property</h1> <p class="ex1">A paragraph with a 2 em top padding. The em unit is relative to the font-size of the element (2em means 2 times the size of the current font).</p> </body> </html>