基本語法格式: element { property: value }
如:
p { color: #ff000000; font-size: 10pt }
body { background: #ff0000; font-size: 10pt }
也可以 body,p { …. }
<head>
<style>
<!–
// css
–>
</style>
</head>
或
<head><style>
<!–
@import URL(./xxx.css);
–>
</style></head>
或
<link rel=stylesheet type="text/css" href="xxx.css">
或
<p style="….">aaa</p>
A:link {}
A:active {}
A:visited {}
A:hover {}
屬性: text-decoration, none, underline, overline, line-through, bilnk
屬性 cursor 可填的值: auto/crosshair/default/heand/move/e-resize/ne-resize/nw-resize/n-resize
/se-resize/sw-resize/s-resize/w-resize/text/wait/help
.layer1 {
position: absolute/relative/static;
top: 20px;
left: 30px;
z-index: 1;
}
前面加上 '.' 是配合 class 使用
這一段除文字可用外,圖片也可以用