input默认文本,输入隐藏

              <form class="form1" action="" method="get">
                     <input class="user1" value="您的慧聪网会员名" onFocus="if(value=='您的慧聪网会员名'){value=''}" onBlur="if(value==''){value='您的慧聪网会员名'}" name="user" type="text">
                     <input class="phone1" value="您的手机号码" onFocus="if(value=='您的手机号码'){value=''}" onBlur="if(value==''){value='您的手机号码'}" name="phone" type="text">
                     <input class="st1" name="" value="提交" type="submit">
              </form>

 

 

              <form class="form1" action="" method="get">
                     <input class="user1" placeholder="您的慧聪网会员名"  name="user" type="text">
                     <input class="phone1" placeholder="您的手机号码" name="phone" type="text">
                     <input class="st1" name="" value="提交" type="submit">
              </form>

posted @ 2020-08-11 17:54  南瓜小园  阅读(358)  评论(0编辑  收藏  举报