Home >Web Front-end >HTML Tutorial >Regarding the line wrapping problem of IE tag LI text_HTML/Xhtml_Web page production

Regarding the line wrapping problem of IE tag LI text_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:40:321401browse

After struggling for a long time, I searched and found someone who really solved this problem. When using UL and LI to display text, the IE browser does not have a default mandatory text length of LI to start with one line. As a result, if the text exceeds the width set by UL, it will wrap at the previous position, causing display problems.

Solution:

Copy the code
The code is as follows:

ul li{
white-space:nowrap;
}

See clearly, it is li that sets this attribute, not ul.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn