当前位置:网站首页>加了定位的文字如何水平垂直居中
加了定位的文字如何水平垂直居中
2022-07-02 21:32:00 【成为自己的光ㄦ~】
//left: 50%;
//top: 50%;
//水平垂直居中
//transform: translate(-50%, -50%);
//这三个是使用绝对定位后使其垂直居中的解决方法
div{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 130px;
height: 100px;
z-index: 999;
opacity: 0.5;
}
//水平居中
p{
position: absolute;
bottom:10px;
left: 50%;
transform: translate(-50%, 0);
}边栏推荐
- [shutter] statefulwidget component (pageview component)
- VictoriaMetrics 简介
- Accounting regulations and professional ethics [19]
- Gbase8s database type
- B.Odd Swap Sort(Codeforces Round #771 (Div. 2))
- Construction and maintenance of business website [3]
- Research Report on right-hand front door industry - market status analysis and development prospect forecast
- In depth research and investment feasibility report on the global and China active vibration isolation market 2022-2028
- Analysis of enterprise financial statements [2]
- [shutter] shutter layout component (opacity component | clipprect component | padding component)
猜你喜欢

tinymce可视化编辑器增加百度地图插件

MySQL learning record (2)

MySQL learning record (5)

D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)

D4: unpaired image defogging, self enhancement method based on density and depth decomposition (CVPR 2022)

The neo4j skill tree was officially released to help you easily master the neo4j map database

CVPR论文解读 | 弱监督的高保真服饰模特生成

treevalue——Master Nested Data Like Tensor

How is LinkedList added?

Research Report on ranking analysis and investment strategic planning of RFID market competitiveness of China's industrial manufacturing 2022-2028 Edition
随机推荐
[shutter] shutter layout component (wrap component | expanded component)
Check the confession items of 6 yyds
How does esrally perform simple custom performance tests?
Research Report on right-hand front door industry - market status analysis and development prospect forecast
Research Report on plastic antioxidant industry - market status analysis and development prospect forecast
Go web programming practice (1) -- basic syntax of go language
China plastic bottle and container market trend report, technological innovation and market forecast
[use of pointer and pointer and array]
Micro SD Card Industry Research Report - market status analysis and development prospect forecast
Write the content into the picture with type or echo and view it with WinHex
*C language final course design * -- address book management system (complete project + source code + detailed notes)
[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology
Today, I met a Alipay and took out 35K. It's really sandpaper to wipe my ass. it's a show for me
GEE:(二)对影像进行重采样
Research Report on market supply and demand and strategy of China's plastic pump industry
beginning
Codeworks global round 19 (CF 1637) a ~ e problem solution
【剑指 Offer 】56 - II. 数组中数字出现的次数 II
发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...
[shutter] statefulwidget component (create statefulwidget component | materialapp component | scaffold component)