1. Group selector.
Description: When several elements have the same style attributes, the same statement can be called. The elements are separated by commas.
p,td,li {
Font-size: 12px;
}
li strong {
font-style: italic;
font-weight: normal;
}
< div id ="menubar" > div >
Then define it like this in the style sheet, #menubar {
margin : 0px ;
background : #FFFFF ;
}
#menubar p {
text-aglin: right;
margin-top: 10px;
}
.12px{
text-aglin:center;
font-family: 宋体;
font-size:12px;
}
12px size font< /span>
This method is more flexible and can be created and deleted at any time. a:link { font-weight : bold ; text-decoration : none ; color : #c30 }
a:visited { font-weight : bold ; text-decoration : none ; color : #c60 }
a:hover { font-weight : bold ; text-decoration : none ; color : #FFFFF }
a:active { font-weight : bold ; text-decoration : none ; color : #EEE }
> Shuffle the order, otherwise the style will be different from what you expected. Their principle is: the principle of love and hate.
That is the principle of love and hate. The order is that the "l" in love is link, "v" is visited, the "h" in hate is hover, and "a" is active.
Use beautiful patterns to replace the dull black spots of ordinary unordered lists. First, use css rules to tell the unordered list of the category attribute inventory.
list-style : disc url(/images/common/lister2.gig) inside ;
}
Code
margin:25px 0 25px 0;
8. Line height.
Description :150% of normal line height.
Okay, in recent days, the layout of the project login and the main page and CSS are not professional artists. Doing it while studying and recording useful things to share with you. Put down your pen,