It's very inspiring and can be used as a reference.
Duan Zhengchun from Taobao.com Colleagues in the previous department of UED Team
, everyone has a set of writing standards, which makes it very difficult to read each other's css code, so we implemented a set of writing standards, which may also be helpful to you.
*{
/*Display properties*/
display
position
float
clear
cursor
…
/*box model*/
margin
padding
width
height
/*typesetting*/
vertical-align
white-space
text-decoration
text-align
…
/*Word*/
color
font
content
/*Border background The reason why the border and background should be placed at the end is that the frequency of modification will be more frequent than before. It is convenient to view them at the end, haha. */
border
background
}
After all, the standard order of writing attributes is: God? Monster? - How is your figure? - Type of clothing (bikini? Padded jacket?) - Style of clothing (black? white? Buttons? Zippers?) - What cosmetics and hairstyle were used.
This small part of the writing standard is not a writing standard promoted by browser manufacturers, so it may not be recognized by the majority of standard promoters. But these are the ones that a few brothers have come to believe are most in line with the existing Taobao environment.