关于javascript:如何给Quill-Editor设置默认高度

4次阅读

共计 453 个字符,预计需要花费 2 分钟才能阅读完成。

对于 Quill Editor 如何装置应用的文章比拟多,这里不再赘述。

明天应用 vue 的 Quill Editor 给我的项目减少编辑器,很多文章只教了怎么装置,然而编辑器的高度默认是一行,在百度上死活找不到,起初又是谷歌帮了我一把,只须要在 vue 单页的 style 中减少一行即可,发在 csdn 上是心愿借助 csdn 帮忙应用百度的小伙伴么疾速找到答案。

<style>
    .edit_container {
        font-family: 'Avenir', Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-align: center;
        color: #2c3e50;
        margin-top: 60px;
    }
    .ql-editor{height:400px;}
</style>

 起源:https://github.com/surmon-china/vue-quill-editor/issues/187

正文完
 0