BB codes

  • [B], [I], [U], [S] - 粗体、斜体、下划线、中划线

    将标签内文字产生加粗、斜体、下划线、中划线效果
    例子:
    这是[B]粗体[/B]文字.
    这是[I]斜体[/I]文字.
    这是[U]下划线[/U]文字.
    这是[S]中划线[/S]文字
    输出:
    这是粗体文字.
    这是斜体文字.
    这是下划线文字.
    这是中划线文字
  • [COLOR=color], [FONT=name], [SIZE=size] - 文字颜色、字体、尺寸

    改变文字颜色、字体和尺寸.
    例子:
    这是[COLOR=red]红色[/COLOR] 和 [COLOR=#0000cc]蓝色[/COLOR] 文字.
    这是[FONT=Courier New]Courier New字体[/FONT]文字.
    这是[SIZE=1]小[/SIZE] 和 [SIZE=7]大[/SIZE]文字.
    输出:
    这是红色蓝色 文字.
    这是Courier New字体文字.
    这是文字.
  • [URL], [EMAIL] - 链接

    将标签内的文本内容作为链接地址.
    例子:
    [URL]http://www.example.com[/URL]
    [EMAIL]info@example.com[/EMAIL]
    输出:
  • [URL=link], [EMAIL=address] - Linking (Advanced)

    为文字添加网页和Email地址连接.
    例子:
    [URL=http://www.example.com]链接到example.com[/URL]
    [EMAIL=info@example.com]点此给我发Email[/EMAIL]
    输出:
  • [USER=ID] - Profile Linking

    Links to a user's profile. This is generally inserted automatically when mentioning a user.
    例子:
    [USER=1]用户名[/USER]
    输出:
  • [IMG] - 图像

    显示图像,标签内为图像的URL.
    例子:
    [IMG]https://corpus4u.org/styles/default/xenforo/corpus4u_logo.png[/IMG]
    输出:
    corpus4u_logo.png
  • [MEDIA=site] - 嵌入视频

    嵌入可用视频站点的视频. 推荐使用编辑器上的视频按钮来添加视频.
    可用的站点: Apple Music, Dailymotion, Facebook, Flickr, Giphy, Imgur, Instagram, Pinterest, Reddit, SoundCloud, Spotify, TikTok, Tumblr, Twitch, X, Vimeo, YouTube
    例子:
    [MEDIA=youtube]kQ0Eo1UccEE[/MEDIA]
    输出:
    嵌入的YouTube播放器会显示在此处
  • [LIST] - 列表

    显示符号或编码列表
    例子:
    [LIST]
    [*]Bullet 1
    [*]Bullet 2
    [/LIST]
    [LIST=1]
    [*]Entry 1
    [*]Entry 2
    [/LIST]
    输出:
    • Bullet 1
    • Bullet 2
    1. Entry 1
    2. Entry 2
  • [LEFT], [CENTER], [RIGHT] - 文字对齐

    改变文字对齐方式.
    例子:
    [LEFT]左对齐[/LEFT]
    [CENTER]居中对齐[/CENTER]
    [RIGHT]右对齐[/RIGHT]
    输出:
    左对齐​
    居中对齐​
    右对齐​
  • [QUOTE] - 引用文字

    显示从其它位置引用文字. 您可以指定引用的属性.
    例子:
    [QUOTE]引用文字[/QUOTE]
    [QUOTE=某人]他说了一些什么事.[/QUOTE]
    输出:
    引用文字
    作者 某人:
    他说了一些什么事.
  • [SPOILER] - Text containing spoilers

    Hides text that may contain spoilers so that it must be clicked by the viewer to be seen.
    例子:
    [SPOILER]Simple spoiler[/SPOILER]
    [SPOILER=Spoiler Title]Spoiler with a title[/SPOILER]
    输出:
    Simple spoiler
    Spoiler with a title
  • [ISPOILER] - Inline text containing spoilers

    Allows you to display text inline among normal content which hides text that may contain spoilers and must be clicked by the viewer to be seen.
    例子:
    You have to click the following [ISPOILER]word[/ISPOILER] to see the content.
    输出:
    You have to click the following word to see the content.
  • [CODE], [PHP], [HTML] - 显示源代码

    以程序源代码的方式显示文本, 并可对其中的关键字进行高亮显示.
    例子:
    [CODE]一般
    代码[/CODE]
    [PHP]echo $hello . 'world';[/PHP]
    输出:
    代码:
    一般
    代码
    PHP:
    echo $hello . 'world';
  • [ICODE] - Inline programming code display

    Allows you to display code inline among normal post content. Syntax will not be highlighted.
    例子:
    Inline code sections [ICODE]are a convenient way[/ICODE] of displaying code inline.

    Rich formatting within inline code sections [ICODE=rich]is [COLOR=red]also[/COLOR] [U]supported[/U][/ICODE].
    输出:
    Inline code sections are a convenient way of displaying code inline.

    Rich formatting within inline code sections is also supported.
  • [INDENT] - 文字缩进

    使文字产生缩进效果,可以嵌套使用.
    例子:
    正常文字
    [INDENT]缩进文字
    [INDENT]更多缩进[/INDENT]
    [/INDENT]
    输出:
    正常文字
    缩进文字
    更多缩进​
  • [TABLE] - Tables

    Special markup to display tables in your content.
    例子:
    [TABLE]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]
    输出:
    Header 1Header 2
    Content 1Content 2
  • [HEADING=level] - Headings levels 1 to 3

    Marks text as a structured heading to facilitate machine readability.
    例子:
    [HEADING=1]Major heading[/HEADING]
    This text comes under a major heading, used to separate the primary sections of an article.

    [HEADING=2]Minor heading[/HEADING]
    When you need to subdivide the primary sections of an article, use a level 2 minor heading.

    [HEADING=3]Subheading[/HEADING]
    If you require additional subdivision, you may drop to level 3.
    输出:

    Major heading​

    This text comes under a major heading, used to separate the primary sections of an article.

    Minor heading​

    When you need to subdivide the primary sections of an article, use a level 2 minor heading.

    Subheading​

    If you require additional subdivision, you may drop to level 3.
  • [PLAIN] - 原始文字

    显示标签内文本中的BB code.
    例子:
    [PLAIN]这是[B]粗体[/B]文字.[/PLAIN]
    输出:
    这是[B]粗体[/B]文字.
  • [ATTACH] - 插入附件

    插件附件至指定的位置. 如果附件为图像,点击相应的按钮,可插入图片的缩略图或全尺寸图片.
    例子:
    缩略图: [ATTACH]123[/ATTACH]
    完整尺寸: [ATTACH=full]123[/ATTACH]
    输出:
    附件内容将显示在此处.
Back
顶部