BB Code
Explanation
BB code is a set of tags based on the HTML language that you may already be familiar with.
They allow you to add formatting to your messages in the same way as HTML does,
but have a simpler syntax and will never break the layout of the pages you are viewing.
The ability to use BB code is set on a forum-by-forum basis by the administrator,
so you should check the forum rules when you post a new message.
Below is a list of the BB code tags you can use to format your messages.
Below is a list of the BB code tags you can use to format your messages.
BB 代码列表
-
粗体 / 斜体 / 下划线
-
颜色
-
大小
-
字体
-
高亮
-
左对齐 / 右对齐 / 居中
-
缩进
-
邮箱链接
-
超级链接地址
-
主题链接
-
帖子链接
-
列表 / 高级列表
-
Images
-
Videos
-
代码
-
引用
-
停止解析 BB 代码
-
附件
-
Flow Player
-
Max Image Width 100%
-
YouKu
Incorrect BB Code Usage:
- [url] www.example.com [/url] - don't put spaces between the bracketed code and the text you are applying the code to.
- [email]myname@domain.com[email] - the end brackets must include a forward slash ([/email])
粗体 / 斜体 / 下划线
[b],[i] 和 [u] 标签允许您创建粗体,斜体和下划线文本。
-
- [b]值[/b]
- [i]值[/i]
- [u]值[/u]
使用 -
- [b]粗体文字[/b]
- [i]斜体文字[/i]
- [u]带下划线的文字[/u]
使用示例 -
- 粗体文字
- 斜体文字
- 带下划线的文字
示例输出结果
大小
[size] 标签允许您改变文本的大小。
-
[size=选项]值[/size]使用
-
[size=+2]此文字比普通文字大两个字号[/size]使用示例
-
此文字比普通文字大两个字号示例输出结果
左对齐 / 右对齐 / 居中
[左],[右] 和 [中] 标签允许您改变文本对齐方式。
-
- [left]值[/left]
- [center]值[/center]
- [right]值[/right]
使用 -
- [left]左对齐的文字[/left]
- [center]居中文字[/center]
- [right]右对齐的文字[/right]
使用示例 -
左对齐的文字居中文字右对齐的文字示例输出结果
邮箱链接
这个 [email] 标签允许您添加一个邮箱地址链接,可以包含链接标题参数。
-
- [email]值[/email]
- [email=选项]值[/email]
使用 -
- [email]j.doe@example.com[/email]
- [email=j.doe@example.com]发送邮件给我[/email]
使用示例 -
示例输出结果
超级链接地址
[url] 标签允许您链接到其他站点和文件,您可以在该链接里包含可选的链接名。
-
- [url]值[/url]
- [url=选项]值[/url]
使用 -
- [url]https://www.awc618.com/forum[/url]
- [url=https://www.awc618.com/forum]華仔天地討論區[/url]
使用示例 -
示例输出结果
主题链接
[thread] 标签允许您使用指定的主题 ID 链接主题,您可以在这个链接里包含可选的链接名。
-
- [thread]主题 ID[/thread]
- [thread=主题 ID]值[/thread]
使用 -
- [thread]42918[/thread]
- [thread=42918]点击查看![/thread]
使用示例 -
示例输出结果
帖子链接
[post] 标签允许您使用指定的帖子 ID 链接到帖子。您可用在这个链接里包含可选的链接名。
-
- [post]帖子 ID[/post]
- [post=帖子 ID]值[/post]
使用 -
- [post]269302[/post]
- [post=269302]点击查看![/post]
使用示例 -
示例输出结果
列表
[list] 标签允许您简单发表不含指定项的列表。在值部分,每个符号都用[*]表示。
-
[list]值[/list]使用
-
[list]
[*]列表项 1
[*]列表项 2
[/list]使用示例 -
- 列表项 1
- 列表项 2
示例输出结果
高级列表
[list] 标签也允许您使用指定的选项创建高级列表.这个选项可以是“1”(创建数字列表)或者“A”(创建大写字母列表,按字母顺序排列)或者“a”(创建小写字母列表,按字母顺序排列)或者“I”(创建大写罗马数字列表)或者“i”(创建小写罗马数字列表)。
-
[list=选项]值[/list]使用
-
[list=1]
[*]列表项 1
[*]列表项 2
[/list]
[list=a]
[*]列表项 1
[*]列表项 2
[/list]使用示例 -
- 列表项 1
- 列表项 2
- 列表项 1
- 列表项 2
示例输出结果
Videos
The [video] tag allows you to embed videos from various video services within your posts.
-
[video]值[/video]使用
-
- [video=youtube;eOUq4Z6R7xI]http://www.youtube.com/watch?v=eOUq4Z6R7xI[/video]
使用示例 -
示例输出结果
代码
[code] 标签允许您插入一段代码。
-
[code]值[/code]使用
-
[code]
<script type="text/javascript">
<!--
alert("Hello world!");
//-->
</script>
[/code]使用示例 -
代码:
<script type="text/javascript"> <!-- alert("Hello world!"); //--> </script>
示例输出结果
高亮
[highlight] 标签允许强调您的文字。
-
使用[highlight]值[/highlight]
-
使用示例[highlight]此文本被高亮显示[/highlight]
-
示例输出结果此文本被高亮显示
停止解析 BB 代码
[noparse] 标签允许您不解析 BB 代码。
-
[noparse][b]值[/b][/noparse]使用
-
[noparse][b]Lorem ipsum dolor sit amet[/b][/noparse]使用示例
-
[b]Lorem ipsum dolor sit amet[/b]示例输出结果