wangEditor更改默认高度

在使用WangEditor时觉得高度太低,默认是300px;想调下高度,借鉴https://blog.csdn.net/qq_31384551/article/details/83240188,

网址博主解释的很详细,我就不解释了

直接在页面撸代码,

<style type="text/css">
.toolbar {
border: 1px solid #ccc;/*设置下拉棒*/
}
.w-e-text-container{
height: 600px !important;/*!important是重点,因为原div是行内样式设置的高度300px*/
}
</style>

 在设置下拉棒时,记得给div加class;

原文地址:https://www.cnblogs.com/ly-520/p/10199312.html