margin-top和-webkit-margin-before有什么区别 [英] What is the difference of margin-top and -webkit-margin-before

查看:65
本文介绍了margin-top和-webkit-margin-before有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Webkit添加了其自己的特定边距,即:

Webkit have added its own specific margins which are:

-webkit-margin-before:
-webkit-margin-after:
-webkit-margin-start:
-webkit-margin-end:

我了解(margin-left和-webkit-margin-start)或(margin-right和-webkit-margin-end)与从左到右"或从右到左"语言相关的区别.

I understand the difference of (margin-left and -webkit-margin-start) or (margin-right and -webkit-margin-end) which is related to "left to right" or "right to left" languages.

我的问题是(margin-top和-webkit-margin-before)或(margin-bottom和-webkit-margin-after)之间有什么区别?

My question is what is the difference between (margin-top and -webkit-margin-before) or (margin-bottom and -webkit-margin-after) ?

注意:很明显,-webkit前缀仅适用于chrome和safari等webkit引擎浏览器.这个问题与此无关.

Note: It is obvious that -webkit prefix only works on webkit engine browsers such as chrome and safari. This question is not related to it.

推荐答案

到目前为止,我能找到的最佳答案是-web-margin-before在普通文档中的作用与margin-top相同,但在底部至顶部"(相同的想法适用于-webkit-margin-after).

The best answer I could find so far is -web-margin-before acts same as margin-top on normal documents but it will act as margin-bottom on "bottom to top" languages (same idea applies to -webkit-margin-after).

您可以在此链接中找到许多从上到下"的语言 omniglot.com/writing /direction.htm (感谢@MarkPlewis)

You can find a number of "bottom to top" languages in this link omniglot.com/writing/direction.htm (thanks to @MarkPlewis)

这篇关于margin-top和-webkit-margin-before有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆