如图这是对标小程序的界面,图片顶部是圆角
接下来看我的
图片样式也已经设置了超出边框就隐藏,但是还是不行,顶部是方角
求解答
为什么别人可以让图片顶部形成圆角,我的缺不可以?Why can others make the top of the picture rounded, can I do it?
为什么别人可以让图片顶部形成圆角,我的缺不可以?如图这是对标小程序的界面,图片顶部是圆角
接下来看我的
图片样式也已经设置了超出边框就隐藏,但是还是不行,顶部是方角
求解答
As shown in the figure, this is the interface of the benchmarking applet. The top of the picture is rounded. Next, my picture style has been set to hide beyond the border, but it still doesn't work. The top is a square corner
回答:
gooditem 设置overflow:hidden试试看
你把over-flow:hidden 放到卡片样式gooditem里面去试下
难道不是在gooditem里加溢出隐藏吗?
给图片添加个样式就行了
border-radius: 26rpx 26rpx 0 0;
把 overflow:hidden; 放到你的 .goodItem{} 里。你放错位置了