实现 - 文本重叠div

时间:2018-06-12 14:37:09

标签: html materialize

https://jsfiddle.net/cpfm27q3/

专栏'最新新闻'如jsfiddle中所见,文本彼此重叠。

我想让文字跳到新的一行。

         <div class="col s12 l3">
          <div class="col s3 l12">
            <h6 class="red-text">Latest News</h6>
            <ul class="latest-collection">
              <li class="latest-collection-item">Teswtttttttttdddddddddddt</li>
              <li class="latest-collection-item">Teswtttttttttdddddddddddt</li>
            </ul>
          </div>
          <div class="col s3 l12">
            <h6 class="red-text">Latest News</h6>
            <ul class="latest-collection">
              <li class="latest-collection-item">Teswtttttttttdddddddddddt</li>
              <li class="latest-collection-item">Teswtttttttttdddddddddddt</li>
            </ul>
          </div>
          <div class="col s3 l12">
            <h6 class="red-text">Latest News</h6>
            <ul class="latest-collection">
              <li class="latest-collection-item">Teswtttttttttdddddddddddt</li>
              <li class="latest-collection-item">Teswtttttttttdddddddddddt</li>
            </ul>
          </div>
        </div>

1 个答案:

答案 0 :(得分:0)

文本不是可换行的文本,所以你可能需要在你的类latest-collection-item中添加overflow:hidden或word-wrap:break-word