当前位置:网站首页>移动端 1px 像素兼容性问题,实现1px 边框
移动端 1px 像素兼容性问题,实现1px 边框
2022-07-02 22:09:00 【伟笑】
我是利用伪类+定位实现的。
.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);
}
当然还有其他方法:
参考:6种移动端 1px 解决方案
边栏推荐
- 送给即将工作的自己
- Uniapp wechat login returns user name and Avatar
- 数据分析学习记录(二)---响应曲面法及Design-Expert的简单使用
- Higher order operation of bits
- Gas station [problem analysis - > problem conversion - > greed]
- Addition, deletion, modification and query of handwritten ORM (object relationship mapping)
- Qt QProgressBar详解
- The threshold value of fusing proportion cannot be changed with sentinel, and setting the slow call proportion has no effect
- Golang interview finishing three resumes how to write
- 杰理之如何测试按键的误触率【篇】
猜你喜欢

World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection

uniapp微信登录返显用户名和头像

Learning records of data analysis (II) -- simple use of response surface method and design expert
![P7072 [CSP-J2020] 直播获奖](/img/bc/fcbc2b1b9595a3bd31d8577aba9b8b.png)
P7072 [CSP-J2020] 直播获奖

Uniapp wechat login returns user name and Avatar

首批 | 腾讯云完成国内首个云原生安全成熟度评估

大话云原生之负载均衡篇-小饭馆客流量变大了

wait解决僵尸进程
![[leetcode] reverse the word III in the string [557]](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[leetcode] reverse the word III in the string [557]
![[LeetCode] 多数元素【169】](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[LeetCode] 多数元素【169】
随机推荐
数据分析学习记录--用EXCEL完成简单的单因素方差分析
Using rendertext() to output multiple lines of text with rendertext() in R shiny
泛型与反射,看这篇就够了
Oracle cursor
【板栗糖GIS】global mapper 如何通过dsm批量制作贴地等高线
Array advanced improvement
[leetcode] there are duplicate elements [217]
送给即将工作的自己
首批 | 腾讯云完成国内首个云原生安全成熟度评估
【板栗糖GIS】arcmap—如何批量修改注记要素的字体,颜色,大小等
QT qsplitter splitter
分享 10 个 JS 闭包面试题(图解),进来看看你能答对多少
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
MySQL reset password, forget password, reset root password, reset MySQL password
从2022年Q1财报看携程的韧性和远景
【硬件】标准阻值的由来
Splunk audit 的设定
位的高阶运算
杰理之快速触摸不响应问题【篇】
Introduction and response to high concurrency