自定义 Angular 组件未在 ie11 上应用 css class
custom Angular component not applying css class on ie11
我有一个组件,例如:
<my-component></my-component>
我想给这个组件一个
overflow-x: hidden;
我试过了:
<my-component class="ofx-hidden"></my-component>
.ofx-hidden {overflow-x: hidden;}
但 class 只是没有出现在调试器中。它确实出现在其他浏览器中
我试过了:
<my-component style="overflow-x: hidden;"></my-component>
也不起作用,只是没有出现在 dom
我试过了:
<my-component></my-component>
和
:host {overflow-x: hidden;}
在 my-component.scss 文件中
似乎没有任何效果,我能做什么或我做错了什么?
就我而言,它没有正确刷新缓存。以上任何一项在刷新缓存后都有效。 FML.
我有一个组件,例如:
<my-component></my-component>
我想给这个组件一个
overflow-x: hidden;
我试过了:
<my-component class="ofx-hidden"></my-component>
.ofx-hidden {overflow-x: hidden;}
但 class 只是没有出现在调试器中。它确实出现在其他浏览器中
我试过了:
<my-component style="overflow-x: hidden;"></my-component>
也不起作用,只是没有出现在 dom
我试过了:
<my-component></my-component>
和
:host {overflow-x: hidden;}
在 my-component.scss 文件中
似乎没有任何效果,我能做什么或我做错了什么?
就我而言,它没有正确刷新缓存。以上任何一项在刷新缓存后都有效。 FML.