Encyclopedia of css style list ul, li lateral arrangement, how to remove the space before li

1. List style
Here Insert Picture Description
2.li list laterally arranged (with a display or float)
Example:
Li {
display: inline-Block; / / Li list arranged laterally
margin: 0; (no effect which is wrong in the margin must be set inside ul) / / remove the front of the list box li
list-style: none; // li list before removing the dot
}
UL {
margin: 0; / / remove the front of the list box li
}

// display mode
Li {
List-style: none;
the display: left; / / Li list arranged laterally
}

Guess you like

Origin blog.csdn.net/luckyGirlIT/article/details/94018265