首先感谢你。
\n\n我想实现这样的功能:\xef\xbc\x88为<input>节点\xef\xbc\x89
占位符文本的颜色是:#b8b9b9
您输入的文本颜色是:#4e5050
输入插入符的颜色是:#FF0000
我已经实现了前两个功能1和2,代码是:
\n\ninput[type=\'text\']::-webkit-input-placeholder{\n color: #b8b9b9;\n}\ninput[type=\'text\']:-moz-placeholder{\n color: #b8b9b9;\n}\ninput[type=\'text\']::-moz-placeholder{\n color: #b8b9b9;\n}\ninput[type=\'text\']:-ms-input-placeholder{\n color: #b8b9b9;\n}\ninput[type=\'text\']:focus {\n color: #4e5050;\n}\nRun Code Online (Sandbox Code Playgroud)\n\n但我不知道如何实现功能3。
\n\n我已经尝试过样式文本输入插入符上的功能,\n但这不适用于移动 safari 浏览器。mobile safari输入插入符号颜色已经是iphone的默认颜色:蓝色
\n