当前位置:网站首页>Wechat applet 03 - text is displayed from left to right, and the block elements in the line are centered
Wechat applet 03 - text is displayed from left to right, and the block elements in the line are centered
2022-07-01 15:12:00 【Skipping Wang Xiaozhe】
Effect display

Implementation process
WXML file :
<view class="doctor">
<view class="doctor-tit">
<view class="left-tit"> Doctor's recommendation </view>
<view class="right-tit"> To view more ></view>
</view>
<view class="doctor-list">
<view class="list">
<image class="doctor-pic" src="../../images/center.png"></image>
<view class="doctor-name"> Doctor Zhao </view>
</view>
<view class="list">
<image class="doctor-pic" src="../../images/center.png"></image>
<view class="doctor-name"> Doctor Chen </view>
</view>
<view class="list">
<image class="doctor-pic" src="../../images/center.png"></image>
<view class="doctor-name"> Doctor Liu </view>
</view>
</view>
</view>WXSS style :
01 The text is displayed on the left and right
display: flex;
justify-content: space-between;
02 The box is centered
display : flex;
justify-content : space-around;
/* Doctor's recommendation */
.doctor-tit {
height: 20px;
padding: 15px;
display: flex;
justify-content: space-between;
}
.left-tit {
font-size: 14pt;
text-align: justify;
}
.right-tit {
margin-top: 5px;
font-size: 10pt;
color: #b2b2b2;
}
.doctor-list {
display : flex;
width: 100%;
background-color: #fff;
justify-content : space-around;
}
.list {
width: 30%;
height: 150px;
border: 1px solid red;
text-align: center;
}
.list .doctor-pic {
width: 100%;
height: 120px;
}
.list .doctor-name {
font-size: 12pt;
}边栏推荐
- Flink 系例 之 TableAPI & SQL 与 MYSQL 插入数据
- Flink 系例 之 TableAPI & SQL 与 MYSQL 分组统计
- 《QT+PCL第六章》点云配准icp系列6
- Summary of empty string judgment in the project
- [leetcode] 16. The sum of the nearest three numbers
- Tiantou village, Guankou Town, Xiamen special agricultural products Tiantou Village special agricultural products ant new village 7.1 answer
- [lock] redis lock handles concurrency atomicity
- MongoDB第二話 -- MongoDB高可用集群實現
- Written on the first day after Doris graduated
- IDEA全局搜索快捷键(ctrl+shift+F)失效修复
猜你喜欢

The first technology podcast month will be broadcast soon

Introduction to MySQL audit plug-in

Junda technology - wechat cloud monitoring scheme for multiple precision air conditioners

首届技术播客月开播在即

MySQL 服务正在启动 MySQL 服务无法启动解决途径

Junda technology indoor air environment monitoring terminal PM2.5, temperature and humidity TVOC and other multi parameter monitoring

Opencv learning notes 5 -- document scanning +ocr character recognition

Skywalking 6.4 distributed link tracking usage notes

S32K1xx 微控制器的硬件设计指南

It's settled! 2022 Hainan secondary cost engineer examination time is determined! The registration channel has been opened!
随机推荐
Tableapi & SQL and MySQL grouping statistics of Flink
Digital transformation: data visualization enables sales management
One of the first steps to redis
tensorflow2-savedmodel convert to tflite
Intelligent operation and maintenance practice: banking business process and single transaction tracking
【LeetCode】16、最接近的三数之和
Summary of empty string judgment in the project
Solid smart contract development - easy to get started
JVM第二话 -- JVM内存模型以及垃圾回收
What is the relationship between network speed, broadband, bandwidth and traffic?
《QT+PCL第九章》点云重建系列2
异常检测中的浅层模型与深度学习模型综述(A Unifying Review of Deep and Shallow Anomaly Detection)
Hidden rules of the workplace that must be understood before 30
Take you to API development by hand
[Cloudera][ImpalaJDBCDriver](500164)Error initialized or created transport for authentication
What data capabilities do data product managers need to master?
榨汁机UL982测试项目有哪些
贝联珠贯加入龙蜥社区,共同促进碳中和
tensorflow2-savedmodel convert to tflite
这3款在线PS工具,得试试