首先感谢您。
我想要实现以下功能:(针对 <input>
节点)
占位文本的颜色为:
#b8b9b9
输入的文本颜色为:
#4e5050
输入光标的颜色为:
#FF0000
我已经实现了前两个功能1和2,代码如下:
input[type='text']::-webkit-input-placeholder{
color: #b8b9b9;
}
input[type='text']:-moz-placeholder{
color: #b8b9b9;
}
input[type='text']::-moz-placeholder{
color: #b8b9b9;
}
input[type='text']:-ms-input-placeholder{
color: #b8b9b9;
}
input[type='text']:focus {
color: #4e5050;
}
但是我不知道如何实现功能三。
我已经尝试在样式化文本输入插入符号上使用该功能,但这对移动safari浏览器无效。移动safari输入插入符号的颜色已经是iphone的默认颜色:蓝色。