我知道有关更改占位符文本的
this帖子.我已经尝试在我的textarea标签上实现
textarea::-webkit-input-placeholder { color: #fff; } textarea:-moz-placeholder { /* Firefox 18- */ color: #fff; } textarea::-moz-placeholder { /* Firefox 19+ */ color: #fff; } textarea:-ms-input-placeholder { color: #fff; }
但它没有做任何事情.我错过了什么?
这就是我的textarea之一
<textarea onChange={(e) => this.props.handleUpdateQuestion(e,firstQuestion.Id)} placeholder="Overall Satisfaction Question" name="SEO__Question__c" type="text" className="slds-input" value={firstQuestion.SEO__Question__c ? firstQuestion.SEO__Question__c : ''} style={inputStyle} autoFocus />
解决方法
…也许试着设置一些报价?
onchange="{(e) => this.props.handleUpdateQuestion(e,firstQuestion.Id)}"
否则应该工作得很好:
textarea::-webkit-input-placeholder { color: #0bf; } textarea:-moz-placeholder { /* Firefox 18- */ color: #0bf; } textarea::-moz-placeholder { /* Firefox 19+ */ color: #0bf; } textarea:-ms-input-placeholder { color: #0bf; }
<textarea placeholder="test"></textarea>
原文地址:https://www.jb51.cc/html/232183.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。