当前位置:网站首页>1px pixel compatibility of mobile terminal, 1px border
1px pixel compatibility of mobile terminal, 1px border
2022-07-02 22:59:00 【Wei Xiao】
I use pseudo classes + Positioning implementation .
.div{
position: relative;
padding-top: 20px;
}
.div::before {
margin-top: 10px;
display: block;
content: '';
box-sizing: border-box;
position: absolute;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 1px;
border-top: 1px solid #e7e8eb;
transform: scaleY(1/2);
}
Of course, there are other ways :
Reference resources :6 Mobile terminal 1px Solution
边栏推荐
- How can I use knockout's $parent/$root pseudovariables from inside a . computed() observable?
- 牛客网:最大子矩阵
- Comprehensively analyze the logic of the shared purchase business model? How sharing purchase empowers Enterprises
- Hanging mirror security won four global infosec awards on rsac2022
- Kubernetes uses the host name to allocate the pod on the specified node
- Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
- 性能优化----严苛模式
- 海思3559万能平台搭建:在截获的YUV图像上画框
- 存储单位换算
- AES高級加密協議的動機闡述
猜你喜欢
![[LeetCode] 多数元素【169】](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[LeetCode] 多数元素【169】

Data analysis learning records -- complete a simple one-way ANOVA with Excel

Lambda表达式:一篇文章带你通透
![[NPUCTF2020]ezlogin xPATH注入](/img/6e/dac4dfa0970829775084bada740542.png)
[NPUCTF2020]ezlogin xPATH注入
![[羊城杯2020]easyphp](/img/12/da28f738e50e625b0a66a94af3703d.png)
[羊城杯2020]easyphp

Jatpack------LiveData

Xiaopeng P7 had an accident and the airbag did not pop up. Is this normal?

boot actuator - prometheus使用

odoo13搭建医院HRP环境(详细步骤)

Kubernetes uses the host name to allocate the pod on the specified node
随机推荐
Wait to solve the zombie process
杰理之样机无触摸,拆机之后重新安装变正常【篇】
LC173. 二叉搜索树迭代器
Learning records of data analysis (II) -- simple use of response surface method and design expert
Go语言sqlx库操作SQLite3数据库增删改查
Jerry's modification does not require long press the boot function [chapter]
Storage unit conversion
Freshman learning sharing
海思3559万能平台搭建:在截获的YUV图像上旋转操作
Jatpack------LiveData
[LeetCode] 存在重复元素【217】
Uniapp wechat login returns user name and Avatar
杰理之修改不需要长按开机功能【篇】
数据分析学习记录--用EXCEL完成简单的单因素方差分析
【板栗糖GIS】arcmap—如何批量修改注记要素的字体,颜色,大小等
boot actuator - prometheus使用
[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')
杰理之内置短按再长按,不管长按多长时间都是短按【篇】
Baidu AI Cloud - create a face recognition application
杰理之、产线装配环节【篇】