CSS使用margin-bottom属性
的边距指定元素的底部边缘。它的长度值可以是%或auto。您可以尝试运行以下代码来设置下边距:
示例
<html>
<head>
</head>
<body>
<p style = "margin-bottom: 20px; border:2px solid red;">
This is a paragraph with a specified bottom margin .
</p>
<p style = "margin-top: 20%; border:2px solid green;">
This is another bottom with a specified top margin in percent
</p>
</body>
</html>热门推荐
10 职场寄语老师祝福语简短
11 爸爸生日祝福语简短干净
12 端午祝福语赛龙舟简短
13 老公履职祝福语简短
14 妹妹定婚姐姐祝福语简短
15 分手的祝福语女生简短
16 客户要远行祝福语简短
17 生气祝福语给长辈简短
18 绝美老师花束祝福语简短