-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Card组件样式乱了 #5196
Comments
You can create a reproduce demo on codepen http://codepen.io/benjycui/pen/KgPZrE?editors=001 |
我们在 2.8.0 里加了响应式支持,浏览器窗口宽度小于 768px 时布局会变化。 你出问题的截图里的浏览器窗口宽度是多少,我看不像有这么小。 |
还有你的 cardItemLayout 是啥,最好提供重现,把所有信息都给出来。代码给一半猜的多辛苦。 |
fb8f90c#diff-51de536edf29809d26f0ccfab96f81fcL89 正如 @minwe 所说,这个改动导致了楼主的问题。
|
这个感觉不大好兼容 😢 为了在不使用 JS 的前提下实现响应式 Form,把默认的表单样式改为了 vertical,然后 inline 和 horizontal 会在宽度小于一定时失效。 所以楼主碰到的问题是,因为之前默认样式为 horizontal,现在改为了 vertical 而导致的。 还是建议按标准用法来吧。 |
card组件的cover中的img src属性不能引用本地图片吗 |
Environment(required)
What did you do? Please provide steps to re-produce your problem.
我之前引用的2.7.3版本的Card组件,做了一个card的效果,结果..升级2.8.0后悲剧了...
What do you expected?
这是其中单个card的组件的引用
What happen?
开发服务器的antD版本升级到2.8.0后样式就乱成这样了...
Re-producible online demo
这个就不方便给链接了...
The text was updated successfully, but these errors were encountered: