当前位置:网站首页>transform: translate(-50%, -50%)边框问题
transform: translate(-50%, -50%)边框问题
2022-07-23 05:39:00 【Vivqst】
使用以下样式
position:absolute;
top:50%;
left:50%;
transform: translate(-50%, -50%);
实现居中定位时,若div有边框,边框内部会出现一条细细的白色边框。
原因:div的高度乘50%会产生小数
解决:调整div高度使乘以50%后是个整数
边栏推荐
- 混入视图基类
- [Hudi]hudi的编译及hudi&spark和hudi&flink的简单使用
- pycharm如何正确打包ocr且让打包出来的exe尽量小
- 【无标题】
- Differences and basic operations of shell/sh/bash
- BurpSuite学习笔记
- plsql创建Oracle数据库报错:使用Database Control配置数据库时,要求在当前Oracle主目录中配置监听程序 必须运行Netca以配置监听程序,然后才能继续。或者
- 【无标题】
- idea中复制一个项目/project
- Shardingsphere sub database and table scheme
猜你喜欢

用getchar清理缓冲区(强烈推荐,C语言易错典型)
![[metric]使用Prometheus监控flink1.13org.apache.flink.metrics](/img/9a/f6ef8de9943ec8e716388ae6620600.png)
[metric]使用Prometheus监控flink1.13org.apache.flink.metrics

Error handling of "listener not started or database service not registered" in Oracle database creation

idea中复制一个项目/project

How to merge the website content with video and audio separated? How to write batch download code?

JDBC的学习以及简单封装
![[pytho-flask笔记5]蓝图简单使用](/img/0a/00b259f42e2fa83d4871263cc5f184.png)
[pytho-flask笔记5]蓝图简单使用

sprintboot中使用缓存时候,数据加载不出来

Celery异步发送短信

Project deployment (simplified version)
随机推荐
[Hudi]hudi的编译及hudi&spark和hudi&flink的简单使用
Spectral clustering | Laplace matrix
With only 5000 lines of code, AI renders 100 million landscape paintings on v853
MySQL syntax (pure syntax)
uni-app小程序中v-show与display:flex一起使用时v-show不生效!
Mysql-8.0.28 user operation or user permission Operation
Shardingsphere sub database and table scheme
[监控部署实操]基于granfana展示Prometheus的图表和loki+promtail的图表
BurpSuite学习笔记
【Pyradiomics】提取的影像组学特征值不正常(很多0和1)
Copy a project /project in idea
【无标题】
【无标题】
[Anaconda environmental management and package management]
js的call、apply、bind
Analysis of flask source code (I) request entry
使用聚类分析 构建信用卡高风险客户识别模型
Fun code rain, share it online~-
Scattered notes of machine learning: some concepts and notes
Differences and basic operations of shell/sh/bash