We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你开发小程序有遇到过哪些奇葩表现?
2024.11.19
起因,给两个相邻的自定义组件设置 margin 值,发现没有 margin collapsing 效果。
由于自定义组件一直表现为「换行」特性,让我以为默认是块级元素,然而开发工具 Computed 显示为 display: inline。😮
display: inline
有网友发现,它可能是“随机”的,有 block、有 inline,也有 flex 的。🙄
Related link:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你开发小程序有遇到过哪些奇葩表现?
自定义组件默认是块级元素还是行内元素?
起因,给两个相邻的自定义组件设置 margin 值,发现没有 margin collapsing 效果。
由于自定义组件一直表现为「换行」特性,让我以为默认是块级元素,然而开发工具 Computed 显示为
display: inline
。😮有网友发现,它可能是“随机”的,有 block、有 inline,也有 flex 的。🙄
Related link:
The text was updated successfully, but these errors were encountered: