#body{
margin: top right buttom left; /*外边距*/
padding: top right buttom left; /*内边距*/
}
#border{
border-width: thin;
border-color: red;
border-style: hidden; /*边框样式*/
border: width style color;
}
#background{
background-color: #FFCC66;
background-image: url("butterfly.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: right bottom;
background: [background-color] [background-image] [background-repeat]
[background-attachment] [background-position];
}
#font{
font-family: "Times New Roman", serif;
font-size:30px;
font-style: normal; /*字体样式 */
font-variant:normal; /*字体变化 */
font-weight: normal; /*字体浓淡 */
font: font-style font-variant font-weight font-size font-family;
}
#text{
text-indent: 30px; /*文本缩进 */
text-align: center;
text-decoration: overline; /*文本装饰 */
letter-spacing: 3px; /*字符间距 */
text-transform: capitalize; /*文本转换 */
}
a:link{ /*未访问链接*/
}
a:visited{ /*已访问链接*/
}
a:active{ /*当前焦点的链接*/
}
a:hover.test{ /*鼠标悬停的链接*/
letter-spacing: 10px;
font-weight: bold;
}
#float{ /*浮动元素*/
float: left;
clear: both;
}
#position{
position: absolute;
top:100px;
left: 100px;
}
#z-index{ /*深度*/
}
基本MEMU案例:
.memu ul{
list-style:none; /*消除li样式*/
}
.memu li{
float:left; /*纵列变横列*/
width:100px;
background:#CCC;
margin-left:3px;
line-height:30px;
}
.memu a{
display:block; /*链接充满li*/
text-align:center;
height:30px;
}
.memu a:link{
color:#666;
background:url(arrow_off.gif) #CCC no-repeat 5px 12px;
text-decoration:none;
}
.memu a:visited{
color:#666;
text-decoration:underline;
}
.memu a:hover{
color:#FFF;
font-weight:bold;
text-decoration:none;
background:url(arrow_on.gif) #F00 no-repeat 5px 12px;
}