当前位置:网站首页>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 .
边栏推荐
- [camera topic] complete analysis of camera dtsi
- [data mining] task 6: DBSCAN clustering
- Network security - virus
- Pytest learning notes (12) -allure feature · @allure Step () and allure attach
- 【数据挖掘】任务6:DBSCAN聚类
- 小程序开发的部分功能
- SSL flood attack of DDoS attack
- One of the C language practical projects is greedy snake
- 网络安全-破解系统密码
- Sweet talk generator, regular greeting email machine... Open source programmers pay too much for this Valentine's day
猜你喜欢
Take you ten days to easily complete the go micro service series (I)
STM32 - switch of relay control lamp
Rockchip3399 start auto load driver
High resolution network (Part 1): Principle Analysis
NCTF 2018 part Title WP (1)
mysql
A simple tool for analyzing fgui dependencies
[shutter] animation animation (animatedwidget animation use process | create animation controller | create animation | create animatedwidget animation component | animation operation)
7-25 read numbers (loop switch)
[shutter] animation animation (animatedbuilder animation use process | create animation controller | create animation | create components for animation | associate animation with components | animatio
随机推荐
His experience in choosing a startup company or a big Internet company may give you some inspiration
Take you ten days to easily complete the go micro service series (I)
Vant implements a simple login registration module and a personal user center
Comment le chef de file gère - t - il l'équipe en cas d'épidémie? Contributions communautaires
Network security - vulnerabilities and Trojans
[Appendix 6 Application of reflection] Application of reflection: dynamic agent
函数的定义和调用、this、严格模式、高阶函数、闭包、递归
Summary of interval knowledge
Vant 实现简单的登录注册模块以及个人用户中心
Caused by: com. fasterxml. jackson. databind. exc.MismatchedInputException: Cannot construct instance o
In the face of difficult SQL requirements, HQL is not afraid
Network security - scan
One of the C language practical projects is greedy snake
C application interface development foundation - form control (1) - form form
网络安全-动态路由协议RIP
VIM 9.0 is officially released! The execution speed of the new script can be increased by up to 100 times
LeetCode 987. Vertical order transverse of a binary tree - Binary Tree Series Question 7
网络安全-ACL访问控制列表
¢ growth path and experience sharing of getting an offer
【数据挖掘】任务6:DBSCAN聚类