解决方案 »

  1.   

    对,使用div去模似。
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
     <head>
      <title> New Document </title>
      <meta name="Generator" content="EditPlus">
      <meta name="Author" content="">
      <meta name="Keywords" content="">
      <meta name="Description" content="">
     </head> <body>
      <div id="tt" contenteditable="true"></div>
      <script>
    document.getElementById("tt").innerHTML = "<font color='red'>hello</font>说:<font color='blue' size=20>你好</font>";
      </script>
     </body>
    </html>
      

  2.   

    你可以 单独 对你的字 加 字体颜色  <font color="#FF0000">