使用CSS设置元素的上边距
上 边距指定元素的上边距。它的长度值可以是%或auto。您可以尝试运行以下代码来设置上边距:
示例
<html>
<head>
</head>
<body>
<p style = "margin-top: 10px; border:2px solid red;">
This is a paragraph with a specified top margin
</p>
<p style = "margin-top: 10%; border:2px solid green;">
This is another paragraph with a specified top margin in percent
</p>
</body>
</html>热门推荐
10 年末祝福语简短小清新
11 古风考试祝福语 唯美简短
12 初四祝福语简短霸气
13 送祝福语给别人简短
14 生日祝福语简短致表哥
15 感恩老师祝福语简短独特
16 赞美祝福语大全简短的
17 班级祝福语简短句子
18 小朋友上学祝福语简短