Javascript iOS上的当前颜色问题
我收到了以下问题: 输入为白色文本,在I类中,将其值设置为“currentColor”,该值绝对不是白色。 问题是,这种情况只发生在iOS设备上(Safari和Chrome都经过测试)。 你知道会发生什么吗 CSS: JS:Javascript iOS上的当前颜色问题,javascript,css,ios,safari,Javascript,Css,Ios,Safari,我收到了以下问题: 输入为白色文本,在I类中,将其值设置为“currentColor”,该值绝对不是白色。 问题是,这种情况只发生在iOS设备上(Safari和Chrome都经过测试)。 你知道会发生什么吗 CSS: JS: 输出: .myClass input:disabled { cursor: no-drop; -webkit-text-fill-color: currentColor; opacity: 1; } <input type="
输出:
.myClass input:disabled {
cursor: no-drop;
-webkit-text-fill-color: currentColor;
opacity: 1;
}
<input type="text" class disabled tabindex="-2" style="text-align: left;">