为什么我的容器在垂直方向一直有空隙?想用margin-top:10px 减小空隙但是没用

小程序 文章 2021-03-17 10:01 421 0 全屏看文

AI助手支持GPT4.0

为什么我的容器在垂直方向一直有空隙?想用margin-top:10px 减小空隙但是没用Why does my container always have gaps in the vertical direction? I want to use margin-top: 10px to reduce the gap but it's useless

为什么我的容器在垂直方向一直有空隙?想用margin-top:10px 减小空隙但是没用

回答:

默垂眸:

父级设置了justify-content: space-between;

属性?

深圳南徒科技有限公司:

贴xml代码上来

携企网络科技:

我怀疑你用了display:flex 没有给层级加个自动高度,或者是高度冲突造成的,最好工具看下渲染后的代码!

-EOF-

AI助手支持GPT4.0