inside div automatic fit width of li in ie
问题 <div style='width:500px'> <ul> <li> some text in 1 line</li> <li> some text in 1 line</li> <li> some text 2 line</li> <li> some 2</li> <li> 2</li> </ul> </div> I don't know what is the correct css code for display of items in ie like: first two results automatic fit in first line and rest of the results on second line. so basic idea is to let the li get it's own width depending on the data size. Thanks in advance 回答1: I see two ways to achieve what I think you're asking: Option 1: Make the