兼容IE678的placeholder
生活随笔
收集整理的這篇文章主要介紹了
兼容IE678的placeholder
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
jquery-placeholder.js是基于jquery的插件,對不支持placeholder的瀏覽器有非常好的兼容性,只需引入這個js文件,然后給所有Input元素調(diào)用一下placeholder方法即可
插件下載:https://github.com/mybedhome/jquery-placeholder
樣式:
.placeholder { color: #a0a0a0; text-indent: 8px;text-indent: 48px\0;text-indent: 8px\9\0;}
::-webkit-input-placeholder { color: #a0a0a0; }
:-moz-placeholder { color: #a0a0a0; }
?
text-indent: 48px\0; //ie8 hack寫法
text-indent: 8px\9\0; //ie9 hack寫法
轉(zhuǎn)載于:https://www.cnblogs.com/toward-the-sun/p/5848459.html
總結(jié)
以上是生活随笔為你收集整理的兼容IE678的placeholder的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 第二十八章 springboot + z
- 下一篇: 转: 三大WEB服务器对比分析(apa