<asp:TextBox ID="TextBox1" class="input" Text="请输入关键字" runat="Server" Width="100" Height="19" />

解决方案 »

  1.   

    如何改变textbox里的字体大小?
      

  2.   

    to :cmsoft(韦小宝是我的老乡.net) 
    还有个问题,在<asp:TextBox ID="TextBox1" class="input" Text="请输入关键字" runat="Server" Width="100" Height="19" />里面,如何实现当鼠标点到textbox里,“请输入关键字”这几个字会自动消失?
      

  3.   

    <asp:textbox id="TextBox1" runat="server" onFocus="this.value=''">请输入关键字</asp:textbox>
      

  4.   

    <asp:TextBox ID="TextBox1" class="input" Text="请输入关键字" runat="Server" Width="100" Height="19" font-size="10" onFocus="this.Text=''" />
      

  5.   

    To caoit:this.Text=''好像不可以吧?
    TextBox转成页面是<input type=text...
    处理和普通页面的输入框一样的,要用this.value...
      

  6.   

    <asp:TextBox id="TextBox2" class="input" Text="请输入关键字" runat="Server" Width="100" Height="19" font-size="10" onFocus="this.value=''"></asp:TextBox>着句是可以实现的 当在textbox里用鼠标点一下 内容就会消失