BB代码

  • [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.xenforo.com[/URL]
    [EMAIL]info@xenforo.com[/EMAIL]
    输出:
  • [URL=链接],[EMAIL=地址] - 链接 (高级)

    为文字添加网页和邮件地址连接。
    示例:
    [URL=http://www.xenforo.com]链接到 xenforo.com[/URL]
    [EMAIL=info@xenforo.com]点此给我发邮件[/EMAIL]
    输出:
  • [USER=ID] - 链接至个人空间

    用户个人空间链接。当提到会员时自动插入此链接。
    示例:
    [USER=1]用户名[/USER]
    输出:
  • [IMG] - 图像

    显示图像,标签内为图像的链接地址。
    示例:
    [IMG]https://wtliker.com/data/assets/logo/logo.png[/IMG]
    输出:
    logo.png
  • [MEDIA=site] - 嵌入式媒体

    嵌入可用视频站点的视频,推荐使用编辑器上的视频按钮来添加视频。
    可用的站点: ABC News, acfun视频, Amazon Product, Anchor, Audioboom, Audiomack, Bandcamp, BBC News, b站视频, BitChute, Bleacher Report videos, Break, Brightcove, Castos, CBS News Video, Clyp, CNBC, CNN, CNNMoney, CodePen, Comedy Central, Coub, Democracy Now!, dumpert, 8tracks, ESPN, Falstad Circuit Simulator, Fox News, Funny or Die, Gamespot, GameTrailers, Getty Images, Gfycat, Gifs.com, GitHub Gist, Global News, GoFundMe, Google Drive, Google+, Google Sheets, Hudl, Hulu, IGN, IMDb, Indiegogo, Internet Archive, İzlesene, JSFiddle, JW Platform, Kaltura, Kontinental Hockey League (КХЛ), Kickstarter, Libsyn, Livestream, Mail.Ru, Medium, Megaphone, Mixcloud, Mixer, MLB, MRCTV, MSNBC, National Geographic Channel, National Geographic Video, NBC News, NBC Sports, NHL Videos and Highlights, NPR, The New York Times Video, Orfium, Pastebin, Podbean, Prezi, Rumble, Rutube, Scribd, Sendvid, SlideShare, Sporcle, Sportsnet, Spreaker, Steam store, Stitcher, Straw Poll, Streamable, Streamja, Team Coco, TED Talks, Telegram, The Atlantic Video, The Guardian (obsolete), The Onion, TikTok, TMZ, TradingView, Trailer Addict, Trending Views, 247Sports, Twitch, Twitter, Ustream, VBOX7, Veoh, Vevo, Video Detective, Vine, VK, Vocaroo, Vox, Washington Post Video, Wistia, WorldStarHipHop, The Wall Street Journal Online, GameClips.io, Gamer DVR, Youku, YouTube
    示例:
    [MEDIA=youtube]oHg5SJYRHA0[/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] - 隐藏内容

    隐藏文本必须点击后查看。
    示例:
    [SPOILER]隐藏内容[/SPOILER]
    [SPOILER=隐藏标题]隐藏内容[/SPOILER]
    输出:
    隐藏内容
    隐藏内容
  • [ISPOILER] - 包含剧透的内联文本

    允许您在正常显示的内容中隐藏可能包含剧透的内嵌文本,并且必须由查看者单击才能看到。
    示例:
    您必须单击以下[ISPOILER]词语[/ISPOILER]才能看到内容。
    输出:
    您必须单击以下词语才能看到内容。
  • [CODE] - 显示源代码

    以程序源代码的方式显示文本,并可对其中的关键字进行高亮显示。
    示例:
    通用代码:
    [CODE]通用代码[/CODE]

    丰富代码:
    [CODE=rich][COLOR=red]丰富[/COLOR]
    代码[/CODE]

    PHP代码:
    [CODE=php]echo $hello . ' world';[/CODE]

    JS代码:
    [CODE=js]var hello = 'world';[/CODE]
    输出:
    通用代码:
    代码:
    通用代码

    丰富代码:
    丰富的(BB 代码):
    丰富
    代码

    PHP代码:
    PHP:
    echo $hello . ' world';

    JS代码:
    代码:
    var hello = 'world';
  • [ICODE] - 显示内联源代码

    允许在正常的贴子内容中内联显示代码。语法不会高亮显示。
    示例:
    内联代码块[ICODE]是一个方便的方式[/ICODE] ]显示内联代码。
    输出:
    内联代码块是一个方便的方式 ]显示内联代码。
  • [INDENT] - 文字缩进

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

    用于在内容中显示表格的特殊标记。
    示例:
    [TABLE]
    [TR]
    [TH]标头 1[/TH]
    [TH]标头 2[/TH]
    [/TR]
    [TR]
    [TD]内容 1[/TD]
    [TD]内容 2[/TD]
    [/TR]
    [/TABLE]
    输出:
    标头 1标头 2
    内容 1内容 2
  • [HEADING=level] - 标题级别 1 到 3

    将文本标记为结构化标题以提高机器可读性
    示例:
    [HEADING=1]大标题[/HEADING]
    该文本位于一个主要标题下,用于分隔文章的主要部分。

    [HEADING=2]小标题[/HEADING]
    当您需要细分文章的主要部分时,请使用 2 级次要标题。

    [HEADING=3]副标题[/HEADING]
    如果你需要额外的细分,你可以降到第 3 级。
    输出:

    大标题​

    该文本位于一个主要标题下,用于分隔文章的主要部分。

    小标题​

    当您需要细分文章的主要部分时,请使用 2 级次要标题。

    副标题​

    如果你需要额外的细分,你可以降到第 3 级。
  • [PLAIN] - 原始文字

    行文本禁用BB代码转换。
    示例:
    [PLAIN]这是[B]粗体[/B]文字。[/PLAIN]
    输出:
    这是[B]粗体[/B]文字。
  • [ATTACH] - 插入附件

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

    An abbreviation, with mouse-over expansion
    示例:
    [abbr="on hover text"]text[/abbr]
    输出:
    text
  • [ACCORDION] [ACCORDION=option] - Accordion

    A customizable interactive accordion
    示例:
    [ACCORDION=200]
    [SLIDE_HEADER]First Slide[/SLIDE_HEADER]
    [SLIDE]First slide content[/SLIDE]
    [SLIDE=Second Slide]Second slide content[/SLIDE]
    [/ACCORDION]
    输出:
    First Slide
    First slide content
    Second Slide
    Second slide content
  • [ANCHOR] [ANCHOR=option] - Anchor

    Generate a HTML anchor tag
    示例:
    Generate an anchor point;
    [anchor]introduction[/anchor]

    Goto an anchor point
    [anchor=#introduction]Click here to go to introduction[/anchor]
    输出:
    Generate an anchor point;


    Goto an anchor point
    Click here to go to introduction
  • [ARTICLE] [ARTICLE=option] - Article

    Displays an article with an optional source attribution.
    示例:
    [ARTICLE=https://en.wikipedia.org/wiki/Article_(publishing)]
    A news article discusses current or recent news of either general interest (i.e. daily newspapers) or of a specific topic (i.e. political or trade news magazines, club newsletters, or technology news websites).

    A news article can include accounts of eyewitnesses to the happening event. It can contain photographs, accounts, statistics, graphs, recollections, interviews, polls, debates on the topic, etc. Headlines can be used to focus the reader’s attention on a particular (or main) part of the article. The writer can also give facts and detailed information following answers to general questions like who, what, when, where, why and how.
    [/ARTICLE]
    输出:
    Article:
    A news article discusses current or recent news of either general interest (i.e. daily newspapers) or of a specific topic (i.e. political or trade news magazines, club newsletters, or technology news websites).

    A news article can include accounts of eyewitnesses to the happening event. It can contain photographs, accounts, statistics, graphs, recollections, interviews, polls, debates on the topic, etc. Headlines can be used to focus the reader’s attention on a particular (or main) part of the article. The writer can also give facts and detailed information following answers to general questions like who, what, when, where, why and how.
  • [BIMG] [BIMG=option] - Block image

    Displays an image, allowing it to be resized, aligned or floated, and compared with another image.
    示例:
    [bimg]http://www.google.com/images/srpr/logo3w.png[/bimg]
    [bimg=100px]http://www.google.com/images/srpr/logo3w.png[/bimg]
    输出:

  • [ENCADRE] [ENCADRE=option] - Encadre

    This BB Code inserts a text box to the right of a text (absolute position). It has to be inserted just before the content. (width customizable in %)
    示例:
    [ENCADRE]This is a text box with a long text. Can be used with an article for example.[/ENCADRE]Content
    [ENCADRE=30]This is a text box with a long text. Can be used with an article for example.[/ENCADRE]Content
    输出:
    Content
    Content
  • [FIELDSET] [FIELDSET=option] - 文件袋

    This BB Code inserts a fieldset (Title and Width in % customizable ; separator: |)
    示例:
    [fieldset]This is a fieldset[/fieldset]
    [fieldset=Title]This is a fieldset[/fieldset]
    [fieldset=Title|80]This is a fieldset[/fieldset]
    输出:
    Fieldset:
    This is a fieldset

    Title
    This is a fieldset

    Title
    This is a fieldset
  • [FLEFT] - Float left

    Make a block float on the left
    示例:
    [fleft]Make me float on the left[/fleft]
    输出:
    Make me float on the left
  • [FRIGHT] - Float right

    Make a block float on the right
    示例:
    [FRIGHT]Make me float on the right[/FRIGHT]
    输出:
    Make me float on the right
  • [GVIEW] [GVIEW=option] - GVIEW

    This BB Code displays documents using the "Google Docs - Viewer" (supports many different file types:pdf,ppt,doc,xls...).
    示例:
    [GVIEW]http://research.google.com/archive/bigtable-osdi06.pdf[/GVIEW]
    输出:
  • [HR] [HR=option] - hr

    示例:
    Default line:
    [hr]
    Example line one:
    [hr=1]
    Example line two:
    [hr=2]
    Example line three:
    [hr=3]
    Example line four:
    [hr=4]
    Example line five:
    [hr=5]
    输出:
    Default line:

    Example line one:

    Example line two:

    Example line three:

    Example line four:

    Example line five:

  • [JUSTIFY] - Justify

    示例:
    [justify]justified text example
    line 1
    line 2
    line 3[/justify]!
    输出:
    justified text example
    line 1
    line 2
    line 3​
    !
  • [LATEX] [LATEX=option] - Latex

    Renders LaTeX markup.
    示例:
    [LATEX]c=\sqrt{a^2+b^2}[/LATEX]
    输出:
    LaTeX:
    \[c=\sqrt{a^2+b^2}\]
  • [ALERT] [ALERT=option] - Mod:Alert

    Moderator only Alert banner
    示例:
    [alert=Title]Alert[/alert]
    输出:
    title Alert
  • [INFORMATION] [INFORMATION=option] - Mod:Info

    Moderator only Information banner
    示例:
    [information=Title]Information[/information]
    输出:
    title Information
  • [STOP] [STOP=option] - Mod:Stop

    Moderator only Stop banner
    示例:
    [stop=Title]Stop[/stop]
    输出:
    title Stop
  • [WARNING] [WARNING=option] - Mod:Warning

    Moderator only Warning banner
    示例:
    [warning=Title]Warning[/warning]
    输出:
    title Warning
  • [SLIDER] [SLIDER=option] - Slider

    Cycles through slides in a slide-show format.
    示例:
    [SLIDER]
    [SLIDE_HEADER]Title 1[/SLIDE_HEADER]
    [SLIDE=center]Content 1[/SLIDE]
    [SLIDE]Content 2[/SLIDE]
    [SLIDE]Content 3[/SLIDE]
    [SLIDE=open]Content 4[/SLIDE]
    [/SLIDER]
    输出:
    Title 1
    Content 1
    Content 2
    Content 3
    Content 4
  • [SUB] - Subscript

    示例:
    10[sub]1[/sub]!
    输出:
    101​!
  • [SUP] - Superscript

    示例:
    10[sup]1[/sup]!
    输出:
    101​!
  • [TABS] [TABS=option] - Tabs

    Render Tabs into a post
    示例:
    [TABS]
    [SLIDE_HEADER]Title 1[/SLIDE_HEADER]
    [SLIDE]Content 1 - {tab=2}Link to tab 2{/tab}[/SLIDE]
    [SLIDE=Title 2]Content 2[/SLIDE]
    [/TABS]
    [TABS=200]
    [SLIDE_HEADER]First Slide[/slide_header]
    [SLIDE]First tab content - {tab=2}Link to tab 2{/tab}[/SLIDE]
    [SLIDE=Second Slide]Second tab content[/SLIDE]
    [/TABS]
    输出:

  • [TIME] [TIME=option] - Time

    Displays a time or date based on a member's timezone preference.
    示例:
    [TIME=datetime]2050-12-12T03:12:46+0000[/TIME]
    输出:
  • [BILIBILI=option] - 哔哩哔哩

    在帖子中插入自适应的b站视频
    示例:
    [BILIBILI=]BV12h411C7j2[/BILIBILI]
    输出:
  • [WANGYIYUN] - 网易云

    获取歌曲id请到网页版网易云 复制下一首曲子的链接
    示例:
    https://music.163.com/#/song?id=1843704418
    输出:
    https://music.163.com/#/song?id=1843704418
顶部