如图
子元素中的内容超过了我设置的子元素宽度 如何让那些超过的部分显示在第二行?
ul {
display: flex;
background-color: rgb(90, 162, 230);
height: 500px;
width: 500px;
}
li {
width: 200px;
height: 200px;
background-color: pink
}
在li中加上word-break: break-all;就可以了