说明

BB码

The buttons shown belong to the SMF default theme and may differ from forum to forum.

Tag NameButtonCodeOutputComments
BoldBold[b]bold[/b]bold*
ItalicizedItalicized[i]italicized[/i]italicized*
UnderlineUnderline[u]underline[/u]underline*
StrikethroughStrikethrough[s]strikethrough[/s]strikethrough*
GlowGlow[glow=red,2,50]glow[/glow]
glow
The three attributes (eg red, 2, 50) in the 'glow' tag are color, strength and width respectively.
ShadowShadow[shadow=red,left]
shadow
[/shadow]
shadow
The two attributes (eg red, left) in the 'shadow' tag are color and direction respectively.
MarqueeMarquee[move]move[/move]Not valid XHTML, but can also be used for images!
Preformatted TextPreformatted Text[pre]Simple
  Machines
    Forum[/pre]
Simple
  Machines
    Forum
Preserves critical text formatting, rendered in a monospace font.
Left AlignLeft Align[left]left align[/left]

left align

*
CenteredCentered[center]centered[/center] centered *
Right AlignRight Align[right]right align[/right]

right align

*
Right-to-Left*[rtl]right to left![/rtl]
right to left!
Typical usage would be to post Arabic or Hebrew in an English document.
Left-to-Right*[ltr]left to right![/ltr]
left to right!
Typical usage would be to post English in an Arabic or Hebrew document.
Horizontal RuleHorizontal Rule[hr]
*
Font Size*[size=10pt]font size[/size]font size*
Font Face*[font=Verdana]font face[/font]font faceOnly fonts installed on the user's computer will be displayed, so use with caution!
Font Color[color=Red]red[/color]redSelect the color from the drop-down.
Insert FlashInsert Flash[flash=200,200]
http://somesite/somefile.swf
[/flash]
http://somesite/somefile.swfPlease note that, if embedded Flash has been disabled by the forum administrator(s), the Flash file will appear as a straight hyperlink as shown here. The two attributes in the 'flash' tag (where relevant) are width and height respectively.
Insert ImageInsert Image[img]
http://somesite/image.gif
[/img]
Type the width and height attributes to resize the image.
[img width=48 height=48]
http://somesite/image.gif
[/img]
Insert HyperlinkInsert Hyperlink[url]http://somesite/[/url]http://somesite/NB the 'url' tag opens in a new window, but you can type 'iurl' tags to open in the same window.
[url=http://somesite/]
descriptive link
[/url]
descriptive link
Insert EmailInsert Email[email]
someone@somesite
[/email]
someone@somesite*
Insert FTP LinkInsert FTP Link[ftp]
ftp://somesite/somefile
[/ftp]
ftp://somesite/somefile*
[ftp=ftp://somesite/somefile]
descriptive link
[/ftp]
descriptive link
Insert TableInsert Table[table][/table]*No meaningful output from the 'table' tags alone.
Insert Table Row*[table][tr][/tr][/table]*No meaningful output from the 'table' and 'tr' tags alone.
Insert Table Column*[table][tr][td]
content
[/td][/tr][/table]
content
Note the correct nesting of the tags, so the 'table' tags contain the 'tr' tags, which each contain an equal number of 'td' tags!
[table][tr][td]SMF[/td]
[td]Bulletin[/td][/tr]
[tr][td]Board[/td]
[td]Code[/td][/tr][/table]
SMFBulletin
BoardCode
SuperscriptSuperscript[sup]superscript[/sup]superscript*
SubscriptSubscript[sub]subscript[/sub]subscript*
TeletypeTeletype[tt]teletype[/tt]teletypeMonospace font.
Insert CodeInsert Code[code]<?php phpinfo(); ?>[/code]
Code:
<?php phpinfo(); ?>
Always use to preserve formatting of code and avoid parsing as BBC and/or smileys!
Insert QuoteInsert Quote[quote]quote[/quote]
Quote
quote
Note the optional 'author' attribute.
[quote author=author]quote[/quote]
Quote from: author
quote
Insert ListInsert List[list]
[li]SMF[/li]
[li]YaBB SE[/li]
[/list]
  • SMF
  • YaBB SE
While you can add as many items as you wish, each item must be contained by the correct opening and closing tags. You can also style your list item bullets with special opening tags and no closing tags, but this option doesn't currently output valid XHTML.
[list]
[o]circle
[O]circle
[0]circle
[*]disc
[@]disc
[+]square
[x]square
[#]square
[/list]
  • circle
  • circle
  • circle
  • disc
  • disc
  • square
  • square
  • square
Abbreviation*[abbr=exempli gratia]eg[/abbr]egDisplays the full expression for the abbreviation on mouseover.
Acronym*[acronym=Simple Machines Forum]SMF[/acronym]SMFDisplays the full expression for the acronym on mouseover.