0

每个元素溢出隐藏但不包装下面的元素是html和css。

<div class="core-wrapper">
        {{#each data.accountability.coreTasks.coreTasksData}}
            <div class="c-wrapper">
                <div><img src="core.jpg" alt="img"></div>
                <span style="margin-left: 8px" class="font-10-black">{{this}}</span>
            </div>
        {{/each}}
    </div>

款式:

    .core-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    height: auto;
    white-space: wrap;
    overflow: hidden;
   }
    .c-wrapper {
      width: 330px;
      display: flex;
      margin-bottom: 12px;
    }

问题和预期的设计问题是 5 个元素应该包含在下面

4

0 回答 0