此篇文章受密碼保護,請輸入密碼後閱讀。
- 7月 24 週二 200715:19
CSS練習之作展示(一)
- 7月 15 週日 200716:38
如何將CSS套用到文件上

方法A:<style>標籤
在HTML文檔的<HTML>和<BODY>標記之間插入一個<STYLE>...</STYLE>塊對象。
定義方式請參閱樣式表語法。示例如下:
<html>
<style type="text/css">
<!--
body {font: 10pt "Arial"}
h1 {font: 15pt/17pt "Arial"; font-weight: bold; color: maroon}
h2 {font: 13pt/15pt "Arial"; font-weight: bold; color: blue}
p {font: 10pt/12pt "Arial"; color: black}
-->
</style>
<body>
1
