|
pmwiki.org |
文字格式authors (basic) Wikistyle basics(基礎Wiki樣式)WikiStyles?允許作者修改頁面內容(如文字)的顏色或其它屬性。Wikistyle使用百分比符號所寫成,例如 最基本的wikistyles為改變文字屬性,例如文字顏色、背景顏色以及字型。PmWiki 定義了數種改變文字顏色的方法%black%, %white%, %red%, %yellow%, %blue%, %gray%, %silver%, %maroon%, %green%, %navy%, and %purple%。
對於未定義名稱的顏色,必須使用
使用
Scopes(作用範圍)Wikistyles可以設定套用的範圍;倘若不設定範圍,則樣式會一直生效,直到下一個樣式定義,或者到達段落結尾。使用時在樣式定義前加上範圍修飾字即可。例如套用到整個段落(
Wikistyle attributesThe style attributes recognized within a wikistyle specification are: ------------ CSS ------------- --HTML--
color bgcolor class
background-color margin id
text-align padding hspace
text-decoration border vspace
font-size float target
font-family list-style rel
font-weight width* accesskey
font-style height* value
Special: define, apply
The attributes in the first two columns correspond to the cascading style sheet (CSS) properties of the same name. The attributes in the last column apply only to specific items:
Custom style shortcuts(自定樣式縮寫)
小技巧︰將常用的樣式縮寫集中放在Group Header?頁面中,以便群組裡頭所有的頁面都能利用這些縮寫。系統管理員?可以在local customization?先定義一些套用於整個系統的樣式縮寫(詳見CustomWikiStyles?)。 小技巧︰樣式縮寫應命名成有意義的字詞,而不是直接用顏色名字。比如說如果警告訊息要用綠色字,則設定縮寫為 Predefined style shortcuts(預設樣式縮寫)PmWiki預先設定了一些樣式縮寫
使用範例WikiStyleExamples?頁面有許多wiki樣式的使用範例。 已知問題
<< | DocumentationIndex? | >> |