当前位置:网站首页>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;
}边栏推荐
- The solution to turn the newly created XML file into a common file in idea
- Markdown编辑器使用基本语法
- Tableapi & SQL and MySQL insert data of Flink
- 【锁】Redis锁 处理并发 原子性
- Introduction to MySQL audit plug-in
- Flink 系例 之 TableAPI & SQL 与 MYSQL 数据查询
- 这3款在线PS工具,得试试
- 《QT+PCL第九章》点云重建系列2
- [leetcode 324] swing sorting II thinking + sorting
- It's settled! 2022 Hainan secondary cost engineer examination time is determined! The registration channel has been opened!
猜你喜欢

竣达技术丨多台精密空调微信云监控方案

Survey of intrusion detection systems:techniques, datasets and challenges

Music player development example (can be set up)

《QT+PCL第六章》点云配准icp系列2

Take you to API development by hand

点云重建方法汇总一(PCL-CGAL)

【ROS进阶篇】第五讲 ROS中的TF坐标变换

IDEA全局搜索快捷键(ctrl+shift+F)失效修复

厦门灌口镇田头村特色农产品 甜头村特色农产品蚂蚁新村7.1答案

Wechat official account subscription message Wx open subscribe implementation and pit closure guide
随机推荐
DirectX修复工具V4.1公测![通俗易懂]
opencv学习笔记六--图像拼接
Solid basic structure and array, private / public function, return value and modifier of function, event
Flink 系例 之 TableAPI & SQL 与 MYSQL 数据查询
[leetcode 324] 摆动排序 II 思维+排序
三十之前一定要明白的职场潜规则
炎炎夏日,这份安全用气指南请街坊们收好!
点云重建方法汇总一(PCL-CGAL)
Solid basic basic grammar and definition function
Intelligent operation and maintenance practice: banking business process and single transaction tracking
Error-tf. function-decorated function tried to create variables on non-first call
One of the first steps to redis
After twists and turns, I finally found the method of SRC vulnerability mining [recommended collection]
Implementation of deploying redis sentry in k8s
项目中字符串判空总结
Tableapi & SQL and Kafka message insertion in Flink
Basic operation of database
榨汁机UL982测试项目有哪些
What are the books that have greatly improved the thinking and ability of programming?
Solid smart contract development - easy to get started