【发布时间】:2019-04-05 15:52:40
【问题描述】:
我不会根据父方向创建具有不同样式的组件。
例如:
<!-- some tags with dir attribute -->
<my-component></my-component>
<!--close some tags with dir attribute -->
相当于:dir(ltr) 的东西有 chrome 支持?
更新: 这是工作,但我怎样才能在另一种风格中使用它?
[dir='rtl'] mat-header-cell {
border-left: dashed;
}
[dir='ltr'] mat-header-cell {
border-right: dashed;
}
【问题讨论】:
-
你能分享你的完整代码吗?谢谢
标签: javascript css angular