<input type=text> 这种文本框里允许同时也只允许一种颜色的文字

解决方案 »

  1.   

    <input type="text" value="test" name="tesr">
    楼主的意思是改变上面的text中的字体吗?这样好像做不到的呀
    要用css技术的!<input type="text" class="调用你的CSS文件" value="test" name="tesr">
      

  2.   

    <input type="text" style="color: #0000ff;" value="test" name="tesr">
      

  3.   

    <input type="text" style="color:#FF0000" Value="灰豆宝宝.net" name="stxt">
    <SELECT 
    onchange="document.all.stxt.style.color=this.options[this.selectedIndex].text">
    <OPTION>red</OPTION>
    <OPTION>yellow</OPTION>
    <OPTION>blue</OPTION>
    <OPTION>black</OPTION>
    </SELECT>