Copy code The code is as follows:li {width:300px; height:23px; line-height:24px:} <ul> <li>Large line spacing</li> <li>Large line spacing</li> <li>Large line spacing</li> <ul> After the above definition, the line spacing of li should be 23px, but IE is 28px, 5 pixels more. The reason is unknown. The solution is as follows (red means the test is OK): 1. The solution to the problem of blank line spacing in li under IE5: If the width of li is defined, then vertical-align: bottom; needs to be defined in li. 2. It is best not to define the width in UL, but in the DIV outside LI or UL. 3. The best way to write LI is to write the height and width, as well as vertical-align: bottom; in li (for ie5/win bug), or add a div outside ul and define the width. Then you don’t need to define the width and vertical-align: bottom; in li, and it will display normally (no blank line spacing will be generated under IE5), but the height still needs to be defined. |
<<: Differences between FLOW CHART and UI FLOW
>>: Solution to the problem that Xshell cannot connect to the virtualBox virtual machine
1: Download MySql Official website download addre...
A colleague asked me what N and M mean in the MyS...
Table of contents Jenkins installation Install Ch...
<iframe src=”you page's url” width=”100″ he...
1. Create a Docker network docker network create ...
Table of contents Make scrolling smoother BetterS...
Preface Before MySQL 8.0, it was quite painful to...
Table of contents 1. Problem Description 2. Probl...
The “Cancel” button is not part of the necessary ...
Many times, we ignore the setting of the web page ...
Find the problem After upgrading MySQL to MySQL 5...
1. How MySQL uses indexes Indexes are used to qui...
Effect Fading from top to bottom Source code html...
Table of contents 1. Commonly used string functio...