【问题标题】:ngx-image-cropper style not wrokingngx-image-cropper 样式不起作用
【发布时间】:2019-01-01 20:24:31
【问题描述】:

我将我的 angular 6 项目用于ngx-image-cropper,它工作正常,我尝试更改裁剪器样式但它没有改变,任何人都知道如何正确地做到这一点

我用过这种风格

.cropper .move {
  width: 100%;
  cursor: move;
  border: 2px solid red;
}

【问题讨论】:

    标签: css angular


    【解决方案1】:

    尝试在父组件 (index.html) 或全局 CSS (styles.css) 中添加带有重要属性的样式。

    index.html

    .cropper .move 
    {
      width: 100%;
      cursor: move;
      border: 2px solid red !important;
    }
    

    【讨论】:

    • 厕所,很高兴为您提供帮助。
    • 如果我缩放图像想要选择图像的上部以便我可以拖动图像,您有什么解决方案,您有什么解决方案吗?请帮忙
    猜你喜欢
    • 1970-01-01
    • 2021-08-07
    • 2021-04-23
    • 2021-05-05
    • 2021-07-31
    • 1970-01-01
    • 2020-07-17
    • 1970-01-01
    • 2021-05-04
    相关资源
    最近更新 更多