我尝试制作自定义标签,以便用户可以输入显示红色或粗体等字样的文本,例如,当呈现为HTML时,
<rb>text here becomes red and bold</rb> and goes to default here
Run Code Online (Sandbox Code Playgroud)
这会在带有'note'类的div中呈现,并且我有以下css设置
.note rb
{
color:Red;
font-weight:bold;
}
Run Code Online (Sandbox Code Playgroud)
它适用于ie9,chrome,firefox,但在ie8中不起作用.我怎样才能在那里工作?