On the line feed problem of IE label Li text

Time:2021-2-23

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.

resolvent:

Copy code

The code is as follows:

ul li{
white-space:nowrap;
}

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