当前位置:网站首页>The small program vant tab component solves the problem of too much text and incomplete display
The small program vant tab component solves the problem of too much text and incomplete display
2022-07-04 22:58:00 【Song Xiaoyu】
When using applets , Some classification names may be too long , Lead to tab The problem of incomplete display of components will appear in the following figure .
Methods and steps
1. increase tab-class
Label style class
<!-- increase tab-class Definition -->
<van-tabs tab-class="tab-class" sticky class="nav" active="{
{ active }}" bind:change="onCateChange">
<van-tab wx:for="{
{cate_list}}" wx:key="index" title="{
{item.name}}"></van-tab>
</van-tabs>
2. Add style settings
.tab-class {
flex: none !important;
}
Reference documents
边栏推荐
- Notepad++--编辑的技巧
- 攻防世界 MISC 进阶区 3-11
- 通过Go语言创建CA与签发证书
- sobel过滤器
- P2181 对角线和P1030 [NOIP2001 普及组] 求先序排列
- MD5 tool class
- Photoshop批量给不同的图片添加不同的编号
- Sobel filter
- The table is backed up in ODPs. Why check m in the metabase_ Table, the logical sizes of the two tables are inconsistent, but the number of
- Google Earth engine (GEE) - tasks upgrade enables run all to download all images in task types with one click
猜你喜欢
随机推荐
Is Huatai Securities a nationally recognized securities firm? Is it safe to open an account?
【机器学习】手写数字识别
The sandbox has reached a cooperation with digital Hollywood to accelerate the economic development of creators through human resource development
leetcode 72. Edit distance edit distance (medium)
Logo special training camp section II collocation relationship between words and graphics
Pagoda 7.9.2 pagoda control panel bypasses mobile phone binding authentication bypasses official authentication
vim编辑器知识总结
The new version judges the code of PC and mobile terminal, the mobile terminal jumps to the mobile terminal, and the PC jumps to the latest valid code of PC terminal
Three stage operations in the attack and defense drill of the blue team
Redis入门完整教程:初识Redis
企业如何跨越数字化鸿沟?尽在云原生2.0
Summary of index operations in mongodb
NFT Insider #64:电商巨头eBay提交NFT相关商标申请,毕马威将在Web3和元宇宙中投入3000万美元
Redis getting started complete tutorial: publish and subscribe
Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
Test will: bug classification and promotion solution
浅聊一下中间件
Redis démarrer le tutoriel complet: Pipeline
SQL中MAX与GREATEST的区别
About stack area, heap area, global area, text constant area and program code area