Use Clockwise Notation to Specify the Margin of an Element - zilongxuan001/LearnFreecode GitHub Wiki

理解

可以按照顺时针的顺序,简写元素的外边距。

在CSS中的样式如下

<style>
	margin: 40px 20px 20px 40px;
</style>

margin: 40px 20px 20px 40px;意思是padding: 上边 右边 下边 左边

来源

Basic CSS: Use Clockwise Notation to Specify the Margin of an Element | Learn freeCodeCamp

CHANGELOG

2018-9-29 17:28:56

⚠️ **GitHub.com Fallback** ⚠️