占位符颜色仅在IE 9中不起作用。其它浏览器工作正常。谁能告诉我IE9需要哪种css?我使用了一个div ->选择元素->默认输入字段.Want来更改占位符的文本颜色。我在谷歌上搜索,它将在IE 10+上工作
input:-ms-input-placeholder {
color:#27AE60 !important;
}
<input type="text" ng-model="inputText" placeholder="somePlaceholder" />
原始CSS选择器:
#dropdown_ID div.selectize-control div.selectize-input input:-ms-input-placeholder {
color:#27AE60 !important;
}
发布于 2016-01-19 12:30:25
是的,你是对的。IE不支持占位符属性。我发现这两个链接对于选择IE中的占位符问题很有用。
推荐链接:
https://mathiasbynens.github.io/jquery-placeholder/
http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html
你可以使用任何方法来解决你的问题。
https://stackoverflow.com/questions/34876737
复制相似问题