html - IE8、9支持placeholder属性的方法

标签 html internet-explorer placeholder

我有一个小问题,IE 8-9 不支持输入框的 placeholder 属性。

在我的项目 (ASP Net) 中提供这种支持的最佳方式是什么。我正在使用 jQuery。 我需要为此使用一些其他外部工具吗?

http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html一个好的解决方案?

最佳答案

你可以使用这个 jQuery 插件: https://github.com/mathiasbynens/jquery-placeholder

但是你的链接似乎也是一个很好的解决方案。

关于html - IE8、9支持placeholder属性的方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15020826/

相关文章:

javascript - Jquery排序表td无法正确排序货币

html - 如何在html中为特定行实现滚动条

html - 如何让占位符文本缩小以适合其文本输入元素并显示其全部值?

javascript - ModX进化: Template Variable Conflict

internet-explorer - IE 中按钮的 CSS 渐变与链接不同

ios - 如何将 uitextview 与 Storyboard 上的 GCPlaceholderTextView 连接起来?

html - 仅更改背景不透明度

jquery - 如何正确显示 AJAX post 数据返回

html - 为什么我的文档模式是: IE7 standards in HTML5 page?

Javascript IE 错误 : 'target' is null or not an object