On the line feed problem of IE label Li text


For a long time, after searching, someone really solved this problem. When using UL and Li to display text, because the IE browser does not have a default mandatory command for the text length of Li to start one line. If the text exceeds the width set by UL, the line will be folded at the first position, causing display problems.


Copy code

The code is as follows:

ul li{

You can see clearly that Li sets this property, not UL.