【发布时间】:2023-12-23 04:21:01
【问题描述】:
我有关于paper-tab 的内容。有没有办法设置它们的样式以便在每个选项卡中获得两行内容?
回到过去,我会创建两个div, then used::shadow .tab-contentto apply aflex-direction: column``但是现在::shadow已被弃用......我试图用完整的选择器替换它正如 chromestatus 平台上的建议:
paper-tabs.tabs paper-tab #shadow-root div.tab-content
{
flex-direction: column;
}
但它也不起作用。
我尝试过使用 mixin,style is="custom-style"
.tabs{
--paper-tab-content: {flex-direction: column;};
}
也不行
有什么想法吗?
【问题讨论】:
标签: css polymer shadow-dom