<<style>> マクロ

構文

<<style [class="クラス名のリスト"] [style="CSS 宣言リスト"] [force_div=True]>>
スタイルを設定するテキストをここに記述します。
<</style>>

概要

<<style>> マクロを利用すると、テキストや表などに CSS や class 属性を追加できます。 ボックススタイルHTML 表スタイル を設定するのが主な利用方法ですが、独自の CSS を追加することもできます。

force_div=Trueは、何らかの理由で Creole パーサーが混乱し、書式設定が正しく行われない場合に使用します。 このオプションによって、それらの誤りを修正できる場合があります。

文字色

<<style style="color: green;">>
この文章は緑色です。
<</style>>

……以上は次のように表示されます:

この文章は緑色です。

表の背景

|=|=見出し1 |=見出し2 |
|=見出し3 |<<style style=" width: 100%; text-align: center; background-color: lightcoral">> × <</style>>|<<style style=" width: 100%; text-align: center; background-color: mediumseagreen">> ○ <</style>>|

……以上は次のように表示されます:

見出し1見出し2
見出し3 ×

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.