简体   繁体   English

在野生动物园中看不到占位符文本

[英]Placeholder text not visible on safari

I'm applying color to the placeholder using the following css property: 我正在使用以下css属性将颜色应用于占位符:

.pro_heading input::-webkit-input-placeholder {
    color: #777;
}

But in Safari it's not visible. 但是在Safari中不可见。 在此处输入图片说明

Try to add in your css 尝试添加您的CSS

::-webkit-input-placeholder {
  color: #777;
}
::-moz-placeholder { /* Firefox 19+ */
  color:  #777;
}
:-ms-input-placeholder {
  color:  #777;
}
:-moz-placeholder { /* Firefox 18- */
  color:  #777;
}

updated my fiddle https://jsfiddle.net/b4vfx1L5/2/ 更新了我的小提琴https://jsfiddle.net/b4vfx1L5/2/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM