IE不支持textarea的HTML5placeholder属性

html部分:

 1 <form action="">        
 2     <input class="username inp" type="text" placeholder= "姓名" pattern="/([\u4e00-\u9fa5]+|([a-zA-Z]+\s?)+)/ " required />
 3     <input class="tel inp" type="tel" maxlength="2" placeholder = "电话" pattern="/^0?(13|14|15|17|18)[0-9]{9}$/" required />
 4     <input class="QQ inp" type="text" placeholder = "QQ" pattern="/^[1-9]{1}\d{4,10}$/" required  />
 5     <input class="email inp" type="email" placeholder = "邮箱" pattern="/\w+((-w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+/" required  />
 6                         
 7     <textarea class="inp input_obj" placeholder = "留言" >textarea>
 8                         
 9     <input class="submit" type="submit"  value="申请加盟"  />
10     <input class="reset" type="reset" value="重新填写" />
11 form>

JS部分:

 1  

若有其他更好的方法请留言或评论

转载于:https://www.cnblogs.com/BaishangBloom/p/4642448.html

你可能感兴趣的:(IE不支持textarea的HTML5placeholder属性)