<style>樣式標籤</style>.......只能放在<head>.......</head>標籤內
屬性 | 說明 |
同CSS樣式表 | |
語法 <style
type="text/css"> h1 { text-align:center;color:red; } p { color:red;font-weight:bold; } .class { cursor:default;text-color:blue;text-align:center; } </style> 說明 設定<h1>及<p>標籤套用的樣式 |
語法: | <style [title=styleTitle] [type=MIMEType]>... </style>(不可省略結束標籤) |
說明: | <stylus>係用來設定樣式表提供更專業的格式設定,譬如首字放大、字距微調、文件縮排等;也可以將各標籤的格式做更精確的定義。 |
範例: | <style
type="text/css"> A {font: "10pt 新細明體"; text-decoration: none; color: "#C0C0C0"; } A:hover {font:"12pt 新細明體";text-decoration: none; color: yellow; } </style> |