Menu:

Recent Entries

About

Sirius

板工秀勇與阿吉管理中

Categories

Lifetype系統更新 [10]
站務公告 [7]
硬體相關 [2]
Ubuntu相關 [1]
FreeNX [1]
Windows相關 [5]
電腦教室管理 [0]
系統修改 [4]
有關模板 [5]
IMageMagick [1]
學用Blog [2]
LightBox [2]
TinyMCE [3]
校務系統 [2]
Moodle [1]
設備使用 [1]
xoops [5]
CSS [1]
XPress [1]
MySQL [4]
Plugins套用修改 [3]

Links

LiftType教學
- LifeType 線上教學(官網)
- 部落格教室(怡杰老師)
- 阿欣部落
- 阿杰老師部落格教室

Syndicate

RSS 0.90
RSS 1.0
RSS 2.0
Atom 0.3

Version:

andreas01 v1.3

在Lifetype加上BLOCKQUOTE的功能(用來顯示程式碼)

sirius | 02 十月, 2007 02:23

在管理LifeType時,總是要做一些紀錄而且會有一些程式碼的東西,如果能將程式碼框起來,就比較容易區別觀看,因此需要在你選定模版中的CSS檔加入blockquote語法的設定。

以下文章引用自:http://blog.nmes.tp.edu.tw/lifetype/post/2/10 

用來紀錄比較技術性的東西,有時候,就會想要把程式碼之類的東西框起來,這樣比較容易看。請進入 HTML 原始碼編輯模式後,自行加入如下的 HTML 碼 包住屬於程式碼的內容

<blockquote>輸入需要被標示於區塊中文字</blockquote>

/*blockquote設定*/

blockquote {
font-family: Arial; /* 框內的字體 */
color: #000000; /* 這是框內文字的顏色 */ background:#ffffcc; /* 框內的背景顏色 */
margin:5px 40px 5px 40px; /* 框線與框外邊界的距離.. 依次為上右下左*/
font-size:small; font-weight:normal; line-height:150%; /* 設定列高 */
padding: 10px; /* 框內文字與框線的距離 */
border: 2px dotted #336600; /* 框線: 2px的點狀虛線 */

/* 這幾天找到幾個還不錯的框線效果,補一下。 */
/* border: solid 2pt #9c9; /* 框線: 2pt的實線 */
/* border: dashed 2pt #9c9; /* 框線: 2pt的虛線 */
/* border: double 2pt #9c9; /* 框線: 2pt的雙線 */
width: auto;
}

/*quotetitle設定*/
.quotetitle{
font-family:Arial; /* 框內的字體 */
font-size:medium; font-weight:normal; border-bottom: 1px solid #336600; /* 框線的粗細與形式 */
padding: 3px; /* 框內文字與框線的距離 */
}

Posted in 有關模板, CSS . 迴響: (0). 引用:(0). 靜態連結網址
«Next post | Previous post»

Comments

Leave a Reply

發表迴響

 authimage