BBCode是Bulletin Board Code的缩写,有译为「BB代码」者,属于轻量标记语言(Lightweight Markup Language)的一种,如字面上所显示的,它主要是使用在BBS、论坛、Blog等网络应用上。BBcode的语法通常为 [标记] 这种形式,即语法左右用两个中括号包围,以作为与正常文字间的区别。系统解译时遇上中括号便知道该处是BBcode,会在解译结果输出到用户端时转换成最为通用的HTML语法。

常用BBCode 标签指南,有一些网站上编辑发布信息时候,需要使用BBCODE代码,超级链接,图片等等,不了的话,很难用。这里把常用的一些BBCODE代码。

超级链接:

[url]https://iprog-programmer.chinaobd2/[/url]

给关键词加链接可以用下面的代码:

[url=https://www.chinaobd2/wholesale/iprog-programmer-5412.html]iProg[/url]

是不是非常简单?

还有图片代码:

 

Bold[b]{text}[/b]Makes {text} bold 
Italic[i]{text}[/i]Makes {text} italic 
Underline[u]{text}[/u]Underlines {text} 
Strikethrough[s]{text}[/s]Create a strikethrough on {text} 
Font-size[size={number}]{text}[/size]
[style size={number}]{text}[/style]
Changes the font-size of {text} 
Font color[color={color}]{text}[/color]
[style color={color or hex}]{text}[/style]
Changes the color of {text} 
Center text[center]{text}[/center]Centers {text} on screen 
Left align text[left]{text}[/left]Left aligns {text} on screen 
Right align text[right]{text}[/right]Right aligns {text} on screen 
Quote[quote]{text}[/quote]Creates a quotation box containing {text} 
Quote (named)[quote={name}]{text}[/quote]Creates a quotation box quoting {name} as saying {text} 
Link[url]{url}[/url]Makes a link to {url} 
Link (named)[url={url}]{text}[/url]Makes a named link to {url} 
Image[img]{url}[/img]Shows the image indicated by {url} 
Image (resized)Full version: [img width={width} height={height} ...]{url}[/img]
Another variant (shorthand): [img={width}x{height}]{url}[/img]
Shows {url} image resized to {width} and {height} 
ListUnordered list: [ul]{items}[/ul]
Ordered list: [ol]{items}[/ol]
Another variant: [list]{items}[/list]
Displays a list of {items} 
List item[li]{text}[/li]
Shorthand: [*]{text}\newline
Specifies an {item} within a list 
Code[code]{text}[/code]Meant for rendering code snippets 
Preformatted[code]{text}[/code]Renders the {text} while maintaing all white spacing 
Tables[table]{rows}[/table]Show a table with {rows} in it 
Table rows[tr]{cells}[/tr]Renders a table row containing {cells} 
Table content cellsHeading cell: [th]{content}[/th]
Content cell: [td]{content}[/td]
Shows {content} in a table (heading) cellSUPER DP5
Youtube videos[youtube]{id}[/youtube]Shows the youtube video indicated by {id}SBB VAG Pro

转载于:https://wwwblogs/cannovo/p/10810699.html

更多推荐

常用BBCode 代码标签使用指南