Get to know MDN better
此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
CSS 属性 margin-block-start 定义了元素的逻辑块首外边距,并根据元素的书写模式、行内方向和文本朝向对应至实体外边距。
根据 writing-mode、direction 和 text-orientation 所定义的值,此属性对应于 margin-top、margin-right、margin-bottom 或 margin-left 属性。
与此属性相关的有 margin-block-end、margin-inline-start 和 margin-inline-end 等定义元素的其他外边距的属性。
margin-block-start 属性的取值与 margin-left 属性相同。
| 0 |
| same as margin |
| 否 |
| depends on layout model |
| if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto |
| a length |
| CSS Logical Properties and Values Module Level 1 # margin-properties |
启用 JavaScript 以查看此浏览器兼容性表。