How do I give a flex item 100% width?
问题 I am practicing responsive web design, and using flex. The problem is, I want to make the width of the .menu li 100% when the screen is smaller than 768px, so I tried to give .menu ul and .menu li width: 100%. But it doesn't work. I also tried flex: 0 0 100% but nothing happened. How do I make the .menu li 100%? * { box-sizing: border-box; } nav ul, .outline ul { list-style-type: none; margin: 0; padding: 0; } /*common*/ /*layout*/ .container { max-width: 900px; margin: 0; } .outline { flex: