[英]Make Polymer paper-tabs to be centered
甚至可以将“ scrollable”设置为true的聚合物纸片在div中水平居中?
Well anything is possible. 好吧,一切皆有可能。 :) Two things you need to do basically. :)您基本上需要做两件事。
First, make your paper-tabs text-align: center
. 首先,使您的纸张标签 text-align: center
。
#scrollableTabs {
text-align: center;
}
Then, 'cause the scrollable
attribute adds an absolute
position to the #tabsContent
div , you need to overwrite this by giving it a default value of static
. 然后,由于“ scrollable
属性将absolute
位置添加到#tabsContent
div中 ,因此您需要通过为其赋予默认值static
来覆盖此absolute
位置。
#scrollableTabs #tabsContent {
position: static;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.