富文本组件editor的height值如何设置?

发布于 8 年前作者 na4412753 次浏览最后编辑 8 年前来自 ask

editor 的高度,用style设置,没有效果:

style=‘height:150rpx;’

请教:如何设置height?

2 回复
ehu
ehu1 楼6 年前

添加行内样式

<editor style=“height:auto; min-height:50px;” id=“editor{{id}}” class=“ql-container”  read-only=“{{readOnly}}” bindready=“onEditorReady”>

</editor>

rlei
rlei2 楼6 年前

在样式里设置下面的高度试试

.ql-container