当前位置:网站首页>The applet uses the step bar vant steps in vant
The applet uses the step bar vant steps in vant
2022-06-22 07:40:00 【A Huang Junhui a】
Today, I used to write a small program page vant-steps , Encountered two problems in the use , Record it here
Question 1 , introduce vant -steps after , The display of the last node 
I do not know! Will someone else's computer have this problem , Anyway, mine is , No effect , But I'm not happy , I watched it in the developer tool for a long time , That's the icon that went up , Then we use transform:translate Just move it down
So the solution came out , Find the corresponding Selectors
.van-step--horizontal:last-child .van-step__circle-container .index--van-step__icon{
transform: translate(3rpx,31rpx);
background: #fff;
}
.van-step--horizontal:last-child .van-step__circle-container .van-step__circle{
transform: translate(3rpx,36rpx);
background: #fff;
}
Why are there two , One is successful , One is not successful , So there are two things to change
Question two :
Description information : Display in two lines 
That's the small print here , Let it show two lines
to glance at How to use this component 
At first, I just wanted to steps Medium desc Add a to the string in \n That's all right. , Who knows this method will not work , Later, I tried \n Switch to br No labels ,
The final solution Use css Of white-space:pre-wrap Also use... In the string \n
stay css in white-space Property is used to control whitespace in the text of the container 、 tabs 、 Display of line breaks, etc , Values are :
normal: Default , Ignore all whitespace in the text 、 A newline ; Only text exists
Or when the text box reaches the constraint , Text will wrap
nowrap: and normal similar , Ignore all whitespace in the text 、 A newline ; It will not wrap automatically when encountering the width constraint of the box , The text only has br Only when the line changes
pre: Leave the text blank 、 A newline ; It will not wrap automatically when encountering the width constraint of the box , Text exists
Or when there is a newline in the text , Text will wrap
pre-wrap: and pre similar , Leave the text blank 、 A newline ; Text exists
Or when there is a newline in the text , Or when you encounter the width constraint of the box , Text will wrap
pre-line: Ignore the white space in the text ; Text exists
Or when there is a newline in the text , Or when you encounter the width constraint of the box , Text will wrap
边栏推荐
- 丰田bZ4X取消上市发布会,就算低温充电问题不存在,产品力如何?
- robotframework使用 及问题解决
- 微信小游戏(三)
- easy-rule 初窥
- Kuangshi brain++ Tianyuan platform megstudio
- Wechat games (2)
- Selenium anti crawl and analog mobile browser
- Ugui text spacing textspacing
- Backup the method of uploading babies in Taobao stores to multiple stores
- Simplicity is the best method of network promotion
猜你喜欢

Multimedia architecture -- Introduction to display

Chromedriver所有版本下載

由浅入深拿下OpenFeign

Backup the method of uploading babies in Taobao stores to multiple stores

Antd - a-upload-dragger drag upload component - Basic accumulation

How to authorize a picture in a store to another store? What are the methods of unauthorized replication

RFID warehouse management system solution implementation visualization process

Phpcms mobile portal configuration

Detailed explanation of capturing the whole store treasure and uploading it to multiple stores

Image interpolation (nearest neighbor, bilinear)
随机推荐
Qualcomm platform msm8953 display subsystem learning
Kuangshi brain++ Tianyuan platform megstudio
FileTool
微信小游戏(二)
Greek alphabet - system / service name commonly used in development - Collection
How to view cookies in Chrome browser
5、 Image component
How to upload Taobao tmall products with one click
The pit on the school recruitment Road
Do you want to modify the title of the website
Lookup encapsulation of unity monobehavior component
[multi thread programming] thread scheduling strategy and priority
Real MySQL interview question (18) -- practical operation analysis
RFID warehouse management system solution implementation visualization process
Application and problem solving of robotframework
简单是最好的网络推广的方法
The ranking of websites is very important for websites
微信小游戏(四)
itertools 排列组合
robotframework使用 及问题解决