css - ngx-image-cropper 样式不起作用

标签 css angular

我将我的 Angular 6 元素用于 ngx-image-cropper那个工作正常,我尝试改变那个裁剪器样式,但这不是一个改变,任何人都知道如何正确地做到这一点

我用的是这种风格

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

Example image

最佳答案

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

index.html

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

关于css - ngx-image-cropper 样式不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53994839/

相关文章:

angular - 如何在 Angular i18n 路由器模块中使用 LOCALE_ID

javascript - 将表格数据输入新组件时,表格数据未与表格标题内联

angular - 如何在 Angular 中显示传单标记?

css - 每个边界边的渐变完全不同?

jQueryMobile 水平对齐网格元素

jquery - 动画容器高度,添加 ... 到段落的最后一个字

javascript - 将输出结果拆分为 html 中同一表的两个水平部分

angular - 嵌套的 Observables : adding an observable as a property of an observable and unwrapping it

angular - typescript http客户端无法解析 bool 响应

html - CSS HTML - 如何使 anchor 图片到达特定位置