- normal
- none
- open-quote
- close-quote
- no-open-quote
- no-close-quote
使用字串很常見,舉例如下
div:before {
content: "I think, ";
}
div:after {
content: "....";
}
/* 《程式語言教學誌》的範例程式
http://pydoing.blogspot.com/
檔名:content01.css
功能:示範 CSS 2.1 樣式表的使用
作者:張凱慶
時間:西元 2011 年 7 月 */我們以下面的 HTML 文件載入
<html>
<head>
<title>網頁標題</title>
<link rel="stylesheet" type="text/css"
href="content01.css">
</head>
<body>
<div>yes</div>
</body>
</html>
<!-- 《程式語言教學誌》的範例程式
http://pydoing.blogspot.com/
檔名:content01.html
功能:示範 CSS 2.1 樣式表的使用
作者:張凱慶
時間:西元 2011 年 7 月 -->瀏覽器 (broswer) 開啟如下

下例使用 url() 函數 (function) 載入圖片
li:before {
content: url(gear.png);
}
/* 《程式語言教學誌》的範例程式
http://pydoing.blogspot.com/
檔名:content02.css
功能:示範 CSS 2.1 樣式表的使用
作者:張凱慶
時間:西元 2011 年 7 月 */我們以下面的 HTML 文件載入
<html>
<head>
<title>網頁標題</title>
<link rel="stylesheet" type="text/css"
href="content02.css">
</head>
<body>
<ul>
<li>
<a href="http://pydoing.blogspot.com/p/c-tutorial.html">
C 教材</a>
</li>
<li>
<a href="http://pydoing.blogspot.com/p/java-tutorial.html">
Java 教材</a>
</li>
<li>
<a href="http://pydoing.blogspot.com/p/javascript-tutorial.html">
JavaScript 教材</a>
</li>
<li>
<a href="http://pydoing.blogspot.com/p/python-tutorial.html">
Python 教材</a>
</li>
</ul>
</body>
</html>
<!-- 《程式語言教學誌》的範例程式
http://pydoing.blogspot.com/
檔名:content02.html
功能:示範 CSS 2.1 樣式表的使用
作者:張凱慶
時間:西元 2011 年 7 月 -->瀏覽器開啟如下

| 中英文術語對照 | |
|---|---|
| 性質 | property |
| 元素 | element |
| 字串 | string |
| 識別字 | identifier |
| 關鍵字 | keyword |
| 瀏覽器 | broswer |
| 函數 | function |
您可以繼續參考
JavaScript 範例
自訂內容 content
引號 quotes
滑鼠游標 cursor
外框 outline
相關目錄
CSS 2.1 快速導覽
HTML, CSS 教材
首頁
參考資料
http://www.w3.org/TR/CSS21/generate.html
https://developer.mozilla.org/en/CSS/content
沒有留言:
張貼留言