当前位置:网站首页>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
边栏推荐
- [Luogu p1541] tortoise chess [DP]
- 加油站[问题分析->问题转换->贪心]
- [chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements
- Qt QScrollArea
- Higher order operation of bits
- 手写ORM(对象关系映射)增删改查
- Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
- easyclick,ec权朗网络验证源码
- Graphic view frame
- 杰理之直接触摸样机的顶针反应不正常【篇】
猜你喜欢
随机推荐
go 条件变量
Qt QSplitter拆分器
How can I use knockout's $parent/$root pseudovariables from inside a . computed() observable?
海思3559万能平台搭建:在截获的YUV图像上画框
[LeetCode] 存在重复元素【217】
Zhong Xuegao responded that the product will not melt for 1 hour: it contains solid components and cannot melt into water
【喜欢的诗词】好了歌
Uniapp wechat login returns user name and Avatar
The kth largest element in the [leetcode] array [215]
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
AES高級加密協議的動機闡述
位的高阶运算
[leetcode] most elements [169]
To myself who is about to work
【板栗糖GIS】arcscene—如何做出有高度的高程图
大一学习分享
钟薛高回应产品1小时不化:含固体成分 融化不能变成水
【洛谷P1541】乌龟棋【DP】
[leetcode] number of palindromes [9]
数组进阶提高

![Jielizhi, production line assembly link [chapter]](/img/0d/102596ad13aafd9c6133509d9064dd.png)
![[leetcode] reverse the word III in the string [557]](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)





