前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP Spartacus b2b home页面的自动换行是怎么做到的

SAP Spartacus b2b home页面的自动换行是怎么做到的

作者头像
Jerry Wang
发布2021-04-07 15:54:50
2490
发布2021-04-07 15:54:50
举报

如下图所示:

6个banner的父节点,cx-page-slot, 是一个flex container:

this element is causing an element to overflow.

如果去掉display:flex属性,效果如下:

如果保留display:flex, 但是去掉flex-wrap:wrap,效果如下:

flex-wrap默认值是nowrap,即在一条水平线上显示。

  • nowrap (default): single-line which may cause the container to overflow
  • wrap: multi-lines, direction is defined by flex-direction
  • wrap-reverse: multi-lines, opposite to direction defined by flex-direction wrap-reverse 的显示效果:

this element behaves like a block element and lays out its content according to the grid model.

In HTML programming, a block-level element is any element that starts a new line (e.g., paragraph) and uses the full width of the page or container. A block-level element can take up one line or multiple lines and has a line break before and after the element.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021-03-19 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档