WordPress Tips : shell bbcode style
Thursday February 8, 2007把DRL的shell bbcode style增加进来,嘿嘿
/* vBulletin 3 CSS For Style 'DrL sTyLe 2.0' (styleid: 3) */ /* ***** shell bbcode style ***** */ .shell { width: 95%; border: 1px solid #909090; padding: 16px 8px 8px; margin: 16px 8px 8px 8px; text-align: left; background-color: #000000; color: #ffffff; font: 12px "lucida console", "courier new", "lucida grande", sans-serif; } .shell a:link { color: #00ff00; text-decoration: none; } .shell a:visited { color: #00ff00; text-decoration: none; } .shell a:hover, .thead a:active { color: #00ffff; text-decoration: underline; }
用法
<p class=shell>内容</p>
测试
测试
给 wordpress 增加 [shell] 的 quicktags 按钮
edButtons[edButtons.length] = new edButton('ed_shell' ,'shell' ,'<p class=shell>' ,'</p>' ,'' );
附 coolcode page 的 quicktags 按钮 添加方法.
coolcode
edButtons[edButtons.length] = new edButton('ed_coolcode' ,'coolcode' ,'<coolcode> ' ,' </coolcode>' ,'' );
page
edButtons[edButtons.length] = new edButton('ed_page' ,'page' ,'<!--page-->' ,'' ,'p' ,-1 );
