当前位置:网站首页>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 進階區 Erik-Baleog-and-Olaf
- NFT insider 64: e-commerce giant eBay submitted an NFT related trademark application, and KPMG will invest $30million in Web3 and metauniverse
- Summary of index operations in mongodb
- Install the gold warehouse database of NPC
- 质量体系建设之路的分分合合
- String类中的常用方法
- Close system call analysis - Performance Optimization
- MYSQL架构——逻辑架构
- Redis入门完整教程:列表讲解
- Sword finger offer 65 Add without adding, subtracting, multiplying, dividing
猜你喜欢

Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet

The sandbox has reached a cooperation with digital Hollywood to accelerate the economic development of creators through human resource development

Redis入门完整教程:HyperLogLog

NFT Insider #64:电商巨头eBay提交NFT相关商标申请,毕马威将在Web3和元宇宙中投入3000万美元

Unity修仙手游 | lua动态滑动功能(3种源码具体实现)

【OpenGL】笔记二十九、抗锯齿(MSAA)

A complete tutorial for getting started with redis: transactions and Lua

The Sandbox 和数字好莱坞达成合作,通过人力资源开发加速创作者经济的发展

A complete tutorial for getting started with redis: Pipeline

Naacl-22 | introduce the setting of migration learning on the prompt based text generation task
随机推荐
堆排序代码详解
Redis的持久化机制
Attack and defense world misc advanced area ditf
SQL中MAX与GREATEST的区别
企业如何跨越数字化鸿沟?尽在云原生2.0
A complete tutorial for getting started with redis: redis shell
Analysis of environmental encryption technology
攻防世界 misc 进阶区 2017_Dating_in_Singapore
Solana chain application crema was shut down due to hacker attacks
Google Earth Engine(GEE)——以MODIS/006/MCD19A2为例批量下载逐天AOD数据逐天的均值、最大值、最小值、标准差、方差统计分析和CSV下载(北京市各区为例)
剑指Offer 68 - II. 二叉树的最近公共祖先
Notepad++--编辑的技巧
Async await used in map
攻防世界 MISC 进阶区 can_has_stdio?
Persistence mechanism of redis
【OpenGL】笔记二十九、抗锯齿(MSAA)
leetcode 72. Edit distance edit distance (medium)
sobel过滤器
共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
Gnawing down the big bone - sorting (II)