当前位置:网站首页>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
边栏推荐
- 攻防世界 MISC 高手进阶区 001 normal_png
- MySQL Architecture - logical architecture
- 页面关闭前,如何发送一个可靠请求
- 模拟摇杆控制舵机
- NFT Insider #64:电商巨头eBay提交NFT相关商标申请,毕马威将在Web3和元宇宙中投入3000万美元
- MYSQL架构——用户权限与管理
- 云服务器设置ssh密钥登录
- How can enterprises cross the digital divide? In cloud native 2.0
- Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
- About stack area, heap area, global area, text constant area and program code area
猜你喜欢
P2181 对角线和P1030 [NOIP2001 普及组] 求先序排列
Breakpoint debugging under vs2019 c release
Detailed explanation of heap sort code
醒悟的日子,我是怎么一步一步走向软件测试的道路
共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
Redis入门完整教程:客户端通信协议
One of the commonly used technical indicators, reading boll Bollinger line indicators
Attack and defense world misc advanced grace-50
Logo special training camp section II collocation relationship between words and graphics
蓝队攻防演练中的三段作战
随机推荐
Sword finger offer 67 Convert a string to an integer
MD5 tool class
Attack and defense world misc advanced area ditf
Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
攻防世界 MISC 进阶区 3-11
Advanced area of attack and defense world misc 3-11
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
Google Earth Engine(GEE)——以MODIS/006/MCD19A2为例批量下载逐天AOD数据逐天的均值、最大值、最小值、标准差、方差统计分析和CSV下载(北京市各区为例)
攻防世界 MISC 进阶 glance-50
How to send a reliable request before closing the page
Wake up day, how do I step by step towards the road of software testing
页面关闭前,如何发送一个可靠请求
[machine learning] handwritten digit recognition
微信公众号解决从自定义菜单进入的缓存问题
One of the commonly used technical indicators, reading boll Bollinger line indicators
企业如何跨越数字化鸿沟?尽在云原生2.0
【图论】拓扑排序
剑指 Offer 68 - I. 二叉搜索树的最近公共祖先
攻防世界 misc 进阶区 2017_Dating_in_Singapore
Unity修仙手游 | lua动态滑动功能(3种源码具体实现)