当前位置:网站首页>小程序vant tab组件解决文字过多显示不全的问题
小程序vant tab组件解决文字过多显示不全的问题
2022-07-04 22:30:00 【宋小羽】
使用小程序时,某些分类名称可能会过长,导致tab组件显示就会出现下图显示不全的问题。

方法步骤
1. 增加tab-class标签样式类
<!--增加tab-class定义-->
<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. 增加样式设置
.tab-class {
flex: none !important;
}
参考文档
边栏推荐
- 啃下大骨头——排序(二)
- 9 - class
- Introducing QA into the software development lifecycle is the best practice that engineers should follow
- 企业如何跨越数字化鸿沟?尽在云原生2.0
- Erik baleog and Olaf, advanced area of misc in the attack and defense world
- Redis入门完整教程:Redis Shell
- In Linux, I call odspcmd to query the database information. How to output silently is to only output values. Don't do this
- Three stage operations in the attack and defense drill of the blue team
- Sword finger offer 65 Add without adding, subtracting, multiplying, dividing
- Solana chain application crema was shut down due to hacker attacks
猜你喜欢

Redis入门完整教程:客户端通信协议

Naacl-22 | introduce the setting of migration learning on the prompt based text generation task

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

NFT Insider #64:电商巨头eBay提交NFT相关商标申请,毕马威将在Web3和元宇宙中投入3000万美元
页面关闭前,如何发送一个可靠请求

Redis的持久化机制

LOGO special training camp section I identification logo and Logo Design Ideas

新版判断PC和手机端代码,手机端跳转手机端,PC跳转PC端最新有效代码
![[machine learning] handwritten digit recognition](/img/26/cabdc5c92035181d82f6f809e6df0f.png)
[machine learning] handwritten digit recognition

Business is too busy. Is there really no reason to have time for automation?
随机推荐
Sword finger offer 68 - ii The nearest common ancestor of binary tree
Install the gold warehouse database of NPC
On-off and on-off of quality system construction
攻防世界 misc 进阶区 2017_Dating_in_Singapore
Redis的持久化机制
Redis入门完整教程:GEO
Attack and defense world misc advanced grace-50
Redis入门完整教程:事务与Lua
测试必会:BUG的分类及推进解决
Redis入门完整教程:HyperLogLog
LOGO special training camp section I identification logo and Logo Design Ideas
Unity vscode emmylua configuration error resolution
攻防世界 MISC 进阶区 hong
环境加密技术解析
Google Earth engine (GEE) -- take modis/006/mcd19a2 as an example to batch download the daily mean, maximum, minimum, standard deviation, statistical analysis of variance and CSV download of daily AOD
Redis入门完整教程:慢查询分析
浅聊一下中间件
2022-07-04: what is the output of the following go language code? A:true; B:false; C: Compilation error. package main import “fmt“ func main() { fmt.Pri
[try to hack] wide byte injection
攻防世界 misc 高手进阶区 a_good_idea