IE浏览器中input的placeholder不显示

今天在改bug的时候用的IE9浏览器,发现的placeholder都不见了,这是咋回事呢?后来才发现是在IE10以下,是不支持placeholder属性的,于是乎我就写了如下代码解决:
  

猜你喜欢

转载自blog.csdn.net/weixin_43693592/article/details/87971738