默认输入的字号太小了。style里面直接写font-size:16px没有效果。
——————————————————————————
解决了,需要用/deep/深入组件内部设置 .ql-container的样式。
/*设置字体的大小*/
.quillEditor /deep/ .ql-container {
font-size: 16px !important;
}
/*设置文本框高度*/
.quillEditor{
height: 600px !important;
}
可以单独样式写到对应的页面,div {color:#f00 !important;}提升指定样式规则的应用优先权。
回复Assacaster: 跟一下源码,可能是源码有指定路径,这种文本编辑器,一本初始化的时候应该有,默认指定字体大小设置,看看API能不能找到。https://blog.csdn.net/qq_41186730/article/details/101104680