Ant-design-mobile: Tabs能不能自定义样式, 提供接口修改tabs所在的样式(Tabs can customize the style, provide interfaces to modify the styles of the tabs)

Created on 16 May 2018  ·  6Comments  ·  Source: ant-design/ant-design-mobile

Tabs能不能自定义样式, 提供接口修改tabs所在的样式,如下面所示样式,

tabs样式更改

请问怎么实现?谢谢🙏


Tabs can customize the style, provide interfaces to modify the styles of the tabs, as shown below

tabs样式更改

How to achieve? Thank you very much .

Most helpful comment

可覆盖默认样式,比如

.am-tabs-default-bar-tab {
  height: 100px;
}

All 6 comments

Translation of this issue:


# Tabs can customize the style, provide interface to modify the style of the tabs

Tabs can customize the style, provide interfaces to modify the styles of the tabs, as shown below
 [tabs style change] (https://github.com/suwu150/static-resource/blob/master/images/tabs%E6%A0%B7%E5%BC%8F.png)
How to achieve? Thank you

能不能调整tabs的高度

可覆盖默认样式,比如

.am-tabs-default-bar-tab {
  height: 100px;
}

react-native中这个样式该往哪里放?有具体的入口吗?web中的是放在入口文件处,请问react-native在哪里放

这种功能我都是基于官方组件TouchableOpacity和ScrollView自己写的

@doxiaodong 不能覆盖样式吧。因为可能有一个项目里面有多个tabs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

myLazyProgrammer picture myLazyProgrammer  ·  4Comments

subject17 picture subject17  ·  5Comments

tolg picture tolg  ·  4Comments

lixiaoyang1992 picture lixiaoyang1992  ·  3Comments

izee picture izee  ·  4Comments