当前位置:网站首页>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
边栏推荐
- [cooking record] - stir fried 1000 pieces of green pepper
- Is Huatai Securities a nationally recognized securities firm? Is it safe to open an account?
- Tla+ introductory tutorial (1): introduction to formal methods
- 云服务器设置ssh密钥登录
- Redis入门完整教程:Bitmaps
- mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
- Analysis of the self increasing and self decreasing of C language function parameters
- A complete tutorial for getting started with redis: redis shell
- 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
- MD5 tool class
猜你喜欢
【机器学习】手写数字识别
Locust performance test - environment construction and use
Redis入门完整教程:Pipeline
vim编辑器知识总结
小程序vant tab组件解决文字过多显示不全的问题
【剑指Offer】6-10题
Unity-VScode-Emmylua配置报错解决
Three stage operations in the attack and defense drill of the blue team
共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
The Sandbox 和数字好莱坞达成合作,通过人力资源开发加速创作者经济的发展
随机推荐
NFT insider 64: e-commerce giant eBay submitted an NFT related trademark application, and KPMG will invest $30million in Web3 and metauniverse
SPSS installation and activation tutorial (including network disk link)
攻防世界 MISC 进阶区 3-11
【lua】int64的支持
Redis入门完整教程:Redis使用场景
Advanced area a of attack and defense world misc Masters_ good_ idea
Redis入门完整教程:列表讲解
Redis入門完整教程:Pipeline
Detailed explanation of heap sort code
A complete tutorial for getting started with redis: redis shell
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
Hit the core in the advanced area of misc in the attack and defense world
Google Earth Engine(GEE)——基于 MCD64A1 的 GlobFire 日常火灾数据集
Analysis of the self increasing and self decreasing of C language function parameters
Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
剑指 Offer 65. 不用加减乘除做加法
蓝队攻防演练中的三段作战
Tla+ introductory tutorial (1): introduction to formal methods
Unity修仙手游 | lua动态滑动功能(3种源码具体实现)
Pagoda 7.9.2 pagoda control panel bypasses mobile phone binding authentication bypasses official authentication