跟qqq双排的外国妹子:什么代码可以控制文本框内字体的颜色啊!

来源:百度文库 编辑:高校问答 时间:2024/05/09 04:35:20
什么代码可以控制文本框内字体的颜色啊!

<style>
.c{color:red; font-size:18px;}
</style>
<input type="text" name="cc" id="cc" size="45" value="试试">
<br><input type="button" value="试试" onClick="Javascript:if(document.getElementById('cc').className!='c'){document.getElementById('cc').className='c';}else{document.getElementById('cc').className='';}">

text1.forecolor = rgb(200,200,200)