0

在我的 Angular 项目中,我导入了 ngx-editor,并试图让编辑器的高度变小。我确实检查了元素,并且能够修改检查元素中的高度,但是当我从检查元素复制 .nw-editor{ .. } 并将其粘贴到我的 css 文件中时,它并没有改变高度一些原因。

关于如何使高度变小的任何建议或建议?

我将它复制到我的 scss 以及我的全局 style.scss 文件中,但它不起作用。

.nw-editor {
    display: block;
    position: relative;
    height: 100px;    // I try to change the height here
    background: #fff;
    cursor: text;
    width: 100%;
    overflow-y: auto;
}

我的 HTML

// I also try to change the height from here but still not working

  <ngx-wig [(ngModel)]="post.description.features" style="height: 121px"></ngx-wig>

在此处输入图像描述

4

1 回答 1

0

如果你确定你做对了,你可以使用下面的命令来构建

ng build --output-hashing=all
于 2021-08-26T04:17:22.123 回答