如何将以document.write("hello")输入的hello设置颜色
document.write("<font color='red'>hello</font>");
document.write("<a style=‘color:blue’>hello</a>");
也可以设置
p{
color:red;
}
document.write("<font color='red>'"+"hello"+"</font>");
document.write("hello").style.color="red";