当前位置:网站首页>Button button adaptive size of wechat applet
Button button adaptive size of wechat applet
2022-07-03 01:51:00 【weixin_ forty-seven million nine hundred and six thousand six h】
When I was working on the applet, I found , Can be in wxss Set borders , Color, etc . But when testing the screen size change , stay wxss Set in the width、height、font-size etc. , Buttons do not adaptively change size .
stay wxml Medium button Set as follows 

size=“mini” type=“default” class=“pingjia” style=‘width:150rpx;font-size:30rpx !important;’
among style='width:150rpx;font-size:30rpx !important;' It can change the size of the button and the size of the text in it , Unit demand rpx, Will adapt to change , Only in style Set the width , font size ,button The button will change , stay wxss Invalid setting in .
边栏推荐
- mysql
- 网络安全-DNS欺骗与钓鱼网站
- Learn the five skills you need to master in cloud computing application development
- Sweet talk generator, regular greeting email machine... Open source programmers pay too much for this Valentine's day
- Common English Vocabulary
- 小程序开发的部分功能
- 2022 financial product revenue ranking
- Why is it not recommended to use BeanUtils in production?
- [fluent] hero animation (hero animation use process | create hero animation core components | create source page | create destination page | page Jump)
- Network security NAT network address translation
猜你喜欢

海量数据冷热分离方案与实践

Introduction to flask tutorial

Learn BeanShell before you dare to say you know JMeter

技术大佬准备就绪,话题C位由你决定

【数据挖掘】任务2:医学数据库MIMIC-III数据处理

Take you ten days to easily complete the go micro service series (I)

Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly
![[shutter] animation animation (animatedwidget animation use process | create animation controller | create animation | create animatedwidget animation component | animation operation)](/img/5e/1d451a820eadbd05112b41bd0bc7d6.gif)
[shutter] animation animation (animatedwidget animation use process | create animation controller | create animation | create animatedwidget animation component | animation operation)
![[data mining] task 6: DBSCAN clustering](/img/af/ad7aa523b09884eee967c6773a613f.png)
[data mining] task 6: DBSCAN clustering

A simple tool for analyzing fgui dependencies
随机推荐
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance o
Huakaiyun (Zhiyin) | virtual host: what is a virtual host
Introduction to flask tutorial
英语常用词汇
[leetcode] 797 and 1189 (basis of graph theory)
A simple tool for analyzing fgui dependencies
树形结构数据的处理
2022 financial product revenue ranking
Some functions of applet development
LeetCode 987. Vertical order transverse of a binary tree - Binary Tree Series Question 7
海量数据冷热分离方案与实践
Network security - firewall
How to refresh the opening amount of Oracle ERP
Certaines fonctionnalités du développement d'applets
Common English Vocabulary
Related concepts of GDB in embedded system
疫情當頭,作為Leader如何進行團隊的管理?| 社區征文
When the epidemic comes, how to manage the team as a leader| Community essay solicitation
C语言课程信息管理系统
Openresty cache