天天看點

Markdown文檔常用字型及顔色設定

1、字型、字号、顔色設定

<font face="微軟雅黑" >微軟雅黑字型</font>
<font face="黑體" >黑體</font>
<font size=3 >3号字</font>
<font size=4 >4号字</font>
<font color=#FF0000 >紅色</font>
<font color=#008000 >綠色</font>
<font color=#0000FF >藍色</font>
           

上述設定顯示效果如下所示:

微軟雅黑字型

黑體

3号字

4号字

紅色

綠色

藍色

注意:

  • CSDN中的blog預設字号為3号字,字号數值可設為1~7,預設字型為微軟雅黑。其它顔色值可參考 CSDN-markdown編輯器文法——字型、字号與顔色
  • 字型、字号以及顔色可在<font ……中同時設定,如可對文字“微軟雅黑字型”設定格式:
<font face="微軟雅黑" size=6 color=#FF0000 >微軟雅黑字型</font>
           
  • 顯示效果如下:

    微軟雅黑字型

2、加粗、斜體設定

**粗體文字**,或__粗體文字__
           

顯示效果如下:

粗體文字,或__粗體文字__

*斜體文字*,或_斜體文字_
           

顯示效果如下:

斜體文字,或_斜體文字_

3、背景色設定

目前csdn部落格寫作中隻能是借助 table, tr, td 等表格标簽的 bgcolor 屬性來實作背景色的功能。

<table><tr><td bgcolor=orange> 背景色是 1 orange</td></tr></table>
<table><tr><td bgcolor= BlueViolet > 背景色2 BlueViolet </td></tr></table>
           

顯示效果如下:

背景色是 1 orange
背景色2 BlueViolet

更多背景色設定見文章:CSDN-markdown編輯器文法——背景色

文章來源于 https://blog.csdn.net/quintind/article/details/79370427