The first place to pay attention to the use of Li in Ul/ol
1, <ul id= "Banner_indicator" ><li></li><li></li><li></li><li>< /li></ul>
2, <ul id= "Banner_indicator" >
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
When using the following calling method
var Indicatortag = document.getElementById ("Banner_indicator");
var linodes = indicatortag.childnodes;
Summary: call 1 o'clock to get all the Li members, but the call Method 2 o'clock can only get the first row of Li.
The second one is about the details of the div wrapping, which I believe many people have encountered
1. <div id= "Parent" >
<div></div>
<div></div>
<div></div>
</div>
2.
<div>
<div></div><div></div><div></div>
</div>
When there is always a gap between the first inner Div, even if the following CSS parameters are set in the main div style
#parent {
margin=0;
padding=0;
border=0;
}
The result is no change, or there is a gap, but the gap disappears after using the second style, summary: The default is to add a space when using div wrapping.
2 holes in JS about line breaks