Javascript ReactQuill-如何设置占位符属性的样式?

Javascript ReactQuill-如何设置占位符属性的样式?,javascript,reactjs,react-quill,Javascript,Reactjs,React Quill,我想为指定给占位符属性的文本设置样式,并使其字体更大。我该如何使用ReactQuill <ReactQuill placeholder= "some fun text" onChange = {onContentChange} value={contentValue} theme="snow" style={{ height:"300px", padding:"20px", lineHeight:

我想为指定给占位符属性的文本设置样式,并使其字体更大。我该如何使用ReactQuill

          <ReactQuill placeholder= "some fun text" onChange = {onContentChange} value={contentValue} theme="snow" style={{

            height:"300px",
            padding:"20px",
            lineHeight:"0px",

          }}/> 

您可以使用自定义CSS编辑编辑器的样式。将此添加到
index.css
文件中,或者如果您使用的是任何css框架,如
样式化组件
,请在那里编写此css

.quill > .ql-container > .ql-editor.ql-blank::before{
    font-size: 20px;
    color: red;
}