如何在这段CSS代码中字体变成红色?

来源:百度知道 编辑:UC知道 时间:2024/05/15 07:55:05
document.writeln("<style type=\"text\/css\">");
document.writeln("<!--");
document.writeln(".topbg {");
document.writeln(" border-right-width: 1px;");
document.writeln(" border-top-style: dashed;");
document.writeln(" border-right-style: dashed;");
document.writeln(" border-right-color: #FF0000;");
document.writeln(" border-bottom-width: 1px;");
document.writeln(" border-bottom-style: dashed;");
document.writeln(" border-bottom-color: #FF0000;");
document.writeln(" border-top-width: 1px;");
document.writeln(" border-left-width: 1px;");
document.writeln(" border-left-style: dashed;");
document.writeln(" border-top-color: #FF0000;");
document.writeln(" border-left-color: #FF0000;");
document.writeln("}");
document.writeln

document.writeln("<style type=\"text\/css\">");
document.writeln("<!--");
document.writeln(".topbg {");
document.writeln(" border-right-width: 1px;");
document.writeln(" border-top-style: dashed;");
document.writeln(" border-right-style: dashed;");
document.writeln(" border-right-color: #FF0000;");
document.writeln(" border-bottom-width: 1px;");
document.writeln(" border-bottom-style: dashed;");
document.writeln(" border-bottom-color: #FF0000;");
document.writeln(" border-top-width: 1px;");
document.writeln(" border-left-width: 1px;");
document.writeln(" border-left-style: dashed;");
document.writeln(" border-top-color: #FF0000;");
document.writeln(" border-left-color: #FF0000;");
document.writeln("}");