Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

182 - 行内元素的padding和margin是否有效? #182

Open
bettersong opened this issue Apr 5, 2022 · 0 comments
Open

182 - 行内元素的padding和margin是否有效? #182

bettersong opened this issue Apr 5, 2022 · 0 comments
Labels

Comments

@bettersong
Copy link
Owner

bettersong commented Apr 5, 2022

  • 行内元素的padding-top、padding-bottom、margin-top、margin-bottom属性设置是无效的;(margin、padding的上下边距无效)
  • 行内元素的padding-left、padding-right、margin-left、margin-right属性设置是有效的;(margin、padding的左右边距有效)
  • 行内元素的padding-top、padding-bottom从显示的效果上是增加的,但其实设置的是无效的。并不会对他周围的元素产生任何影响。

image

@bettersong bettersong added the css label Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant