首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:CSS 教程
TRY RUN / 在线示例
CSS 教程 Set 使用百分比值设置文本的下边距
CSS 教程 Set 使用百分比值设置文本的下边距
源代码
运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>安科教程(www.ancii.com)</title> <style> p.bottommargin {margin-bottom:25%;} </style> </head> <body> <p>This is a paragraph with no margin specified.</p> <p class="bottommargin">This is a paragraph with a specified bottom margin.</p> <p>This is a paragraph with no margin specified.</p> </body> </html>
运行结果