当前位置:网站首页>Positioning setting horizontal and vertical center (multiple methods)
Positioning setting horizontal and vertical center (multiple methods)
2022-06-26 05:20:00 【AAA.. AA】
Method 1 :flex
Set in parent box :
display : flex;
align-items: center;
justify-content: center;
Method 2 : float
The son is the father
left :50%
top :50%
transfrom: transletter(-50%,-50%)
Method 3 :
Horizontal center (text-align): center
Vertical center (line-height): Same height as the current block
边栏推荐
- cartographer_ optimization_ problem_ 2d
- AD教程系列 | 4 - 创建集成库文件
- Cookie and session Basics
- C# 40. Byte[] to hexadecimal string
- localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。
- cartographer_backend_constraint
- ssh连win10报错:Permission denied (publickey,keyboard-interactive).
- How to ensure the efficiency and real-time of pushing large-scale group messages in mobile IM?
- Codeforces Round #802 (Div. 2)(A-D)
- How MySQL deletes all redundant duplicate data
猜你喜欢

apktool 工具使用文档

12 multithreading

小小面试题之GET和POST的区别

Introduction to alluxio

AD教程系列 | 4 - 创建集成库文件
![C# 39. Conversion between string type and byte[] type (actual measurement)](/img/33/046aef4e0c1d7c0c0d60c28e707546.png)
C# 39. Conversion between string type and byte[] type (actual measurement)

【上采样方式-OpenCV插值】

ECCV 2020 double champion team, take you to conquer target detection on the 7th

uni-app吸顶固定样式

Recursively traverse directory structure and tree presentation
随机推荐
[quartz] read configuration from database to realize dynamic timing task
The localstorage browser stores locally to limit the number of forms submitted when tourists do not log in.
vscode config
Technical problems to be faced in mobile terminal im development
RESNET in tensorflow_ Train actual combat
PHP之一句话木马
Excellent learning ability is your only sustainable competitive advantage
Day4 branch and loop jobs
Tp5.0框架 PDO连接mysql 报错:Too many connections 解决方法
6.1 - 6.2 introduction to public key cryptography
skimage. morphology. medial_ axis
As promised: Mars, the mobile terminal IM network layer cross platform component library used by wechat, has been officially open source
FastAdmin Apache下设置伪静态
Tp5.0 framework PDO connection MySQL error: too many connections solution
PHP one sentence Trojan horse
小小面试题之GET和POST的区别
apktool 工具使用文档
Codeforces Round #800 (Div. 2)
Day3 data type and Operator jobs
How to make your big file upload stable and fast?