登 录
<input type="text" id='txt' style="color:silver" mce_style="color:silver" onfocus="getFocus(this);" value="灰色的" /> <br /> <asp:TextBox ID="TextBox1" runat="server" onfocus="getFocus(this);" Text="灰色的" style="color:silver" mce_style="color:silver"></asp:TextBox> <mce:script type="text/javascript"><!-- function getFocus(obj) { if(obj.style.color=='silver') { obj.value=''; obj.style.color='black'; //obj.value='黑色'; } }
// --></mce:script>
抱歉!评论已关闭.