当前位置:网站首页>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
边栏推荐
- Lambda表达式:一篇文章带你通透
- E-commerce system microservice architecture
- 手写ORM(对象关系映射)增删改查
- Mask R-CNN
- 【洛谷P1541】乌龟棋【DP】
- [chestnut sugar GIS] ArcScene - how to make elevation map with height
- 存储单位换算
- PMP项目整合管理
- 傑理之修改不需要長按開機功能【篇】
- Il n'est pas nécessaire d'appuyer longtemps sur la fonction de démarrage pour modifier Jelly [chapitre]
猜你喜欢

数据分析学习记录--用EXCEL完成简单的单因素方差分析

世界环境日 | 周大福用心服务推动减碳环保
![[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')](/img/02/67448df1817e8b34b654722df8ecd4.jpg)
[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')

地方经销商玩转社区团购模式,百万运营分享

WebRTC音视频采集和播放示例及MediaStream媒体流解析
![The kth largest element in the [leetcode] array [215]](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
The kth largest element in the [leetcode] array [215]

Jatpack------LiveData

图形视图框架
![[NPUCTF2020]ezlogin xPATH注入](/img/6e/dac4dfa0970829775084bada740542.png)
[NPUCTF2020]ezlogin xPATH注入

Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
随机推荐
Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
Learning records of data analysis (II) -- simple use of response surface method and design expert
[chestnut sugar GIS] ArcScene - how to make elevation map with height
Go four singleton modes
Uniapp wechat login returns user name and Avatar
Local dealers play the community group purchase mode and share millions of operations
从2022年Q1财报看携程的韧性和远景
Splunk audit 的设定
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?
Go语言sqlx库操作SQLite3数据库增删改查
Golang's learning route
The kth largest element in the [leetcode] array [215]
Objects and object variables
Golang interview finishing three resumes how to write
Kubernetes uses the host name to allocate the pod on the specified node
【板栗糖GIS】arcmap—如何批量修改注记要素的字体,颜色,大小等
杰理之内置关机电流 1.2uA,之后不能长按开机【篇】
MySQL查询附近的数据.并按距离进行排序.
How can I use knockout's $parent/$root pseudovariables from inside a . computed() observable?