【发布时间】:2021-01-15 13:05:28
【问题描述】:
我有一个组件,例如:
<my-component></my-component>
我想给这个组件一个
overflow-x: hidden;
我试过了:
<my-component class="ofx-hidden"></my-component>
.ofx-hidden {overflow-x: hidden;}
但是类只是没有出现在调试器中。它确实出现在其他浏览器中
我试过了:
<my-component style="overflow-x: hidden;"></my-component>
也没有工作,只是没有出现在 dom 中
我试过了:
<my-component></my-component>
和
:host {overflow-x: hidden;}
在 my-component.scss 文件中
似乎没有任何效果,我能做什么或我做错了什么?
【问题讨论】:
标签: css angular internet-explorer sass