CSS basic properties

width, the default value is auto, you can use numerical values ​​and percentages. For img elements, if only width is set, the height value will be scaled according to the original size of the image
height

Text-overflow text overflow is represented by ellipsis, and the attributes are: ellipsis, which will be effective when used in combination with the following code:
p{white-space:nowrap; overflow:hidden;text-overflow:ellipsis;}
This means that if the length of the text exceeds the outer container or browser width (referring to inline elements), it will not automatically wrap, the extra content will be hidden, and it will be displayed with an ellipsis.

text-decoration specifies whether the text is decorated or not, and the attribute values ​​are:
underline, overlay, linethrough (similar to strikethrough), none
 
 
list-style-image sets the image of the list item. The attribute has only one url. When an image is imported, the symbol in front of the item will be replaced directly after introduction. However , try not to use this method. You can add a background image to the li. This method is more compatible. Okay
text-indent text indent letter-spacing sets the word spacing

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324492507&siteId=291194637