Which one better? Using shorthand like:
padding:5px 10px 15px 20px;
Or using longhand like:
padding-top:5px;
padding-right:10px;
padding-bottom:15px;
padding-left:20px;
Related to:
- performance (browser performance, filesize)
- documentation (easy maintenance by developer)
- and others
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…