Common text settings of CSDN (font, color, size, type, etc.)

Common text settings of CSDN (font, color, size, type, etc.)

One, font settings

The CSDN Markdown editor implements the font setting through code. The code to adjust the font type, color, and size is as follows:

<font face="字体" color=颜色 size=3> 这里放入要修改的文字</font>

face—— is to adjust the font type, you can rewrite "Kai Ti, Hei Ti, Microsoft
Yahei , Song Ti, etc." at will; color—— is the font color, fill in the English word of the color, and change it according to the hexadecimal color value;
size- —Is the font size, the default is 3.

Several commonly used font colors, the list is as follows:

colour English vocabulary Hexadecimal color value
black Black #000000
red Red #FF0000
yellow Yellow # FFD700
blue Blue #0000CD
green Green #00FF00

Example: modify only the color and size

<font color= red size=5>CSDN字体修改

CSDN font modification

<font color= blue size=8>CSDN字体修改

CSDN font modification

Example: modify font, color, size

<font color= #FF0000 face="宋体" size=5>这里放入要修改的文字

Put the text to be modified here

<font color=  red face="宋体" size=5>这里放入要修改的文字

Put the text to be modified here

<font color= blue face="楷体" size=5>这里放入要修改的文字

Put the text to be modified here

Second, draw the table

| | | |Fill in the space at the header of the table, increase the number of columns
|–|--|–|The second line, fixed format, the dashed line cannot be modified , increase the number of columns
| | | |Fill in the space in the blank
| | | |
| | | |

Example
Insert picture description here
effect
Insert picture description here

Three, underline

 <u>CSDN的常用文本设置</u>

Common text settings for sample
CSDN

Fourth, the first line of indentation

&ensp;&ensp;&ensp;&ensp; 每句能缩进二分之一个汉字大小。
&emsp;&emsp; 每句能缩进一个汉字大小。

Effect demonstration:

&ensp;&ensp;&ensp;&ensp; 每句能缩进二分之一个汉字大小。
&ensp;&ensp; 每句能缩进二分之一个汉字大小。

     Each sentence can be indented by one-half the size of a Chinese character.
   Each sentence can be indented to the size of one Chinese character.

&emsp;&emsp; 缩进二个汉字大小。
&emsp; 缩进一个汉字大小。

   Indent the size of two Chinese characters.
  Indent one Chinese character size.

Guess you like

Origin blog.csdn.net/m0_51233386/article/details/114653320