当前位置:网站首页>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
边栏推荐
- Jerry's prototype has no touch, and the reinstallation becomes normal after dismantling [chapter]
- Learning records of data analysis (II) -- simple use of response surface method and design expert
- 'when to use const char * and when to use const char []' - when to use const char * and when to use const char []
- 牛客网:最大子矩阵
- 图形视图框架
- kubernetes 使用主机名将 pod 分配在指定节点上
- P1007 single log bridge
- odoo13搭建医院HRP环境(详细步骤)
- [error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')
- [LeetCode] 反转字符串中的单词 III【557】
猜你喜欢
【板栗糖GIS】arcscene—如何做出有高度的高程图
Share 10 JS closure interview questions (diagrams), come in and see how many you can answer correctly
全面解析分享购商业模式逻辑?分享购是如何赋能企业
Niuke: Dragon and dungeon games
加油站[问题分析->问题转换->贪心]
Jatpack------LiveData
Chow-Liu Tree
`Usage of ${}`
Addition, deletion, modification and query of handwritten ORM (object relationship mapping)
Mathematical modeling -- graph and network models and methods (I)
随机推荐
【板栗糖GIS】arcscene—如何做出有高度的高程图
加油站[问题分析->问题转换->贪心]
数据分析学习记录--用EXCEL完成简单的单因素方差分析
Gas station [problem analysis - > problem conversion - > greed]
Qt QProgressBar详解
Go 4 modes Singleton
[Luogu p1541] tortoise chess [DP]
[羊城杯2020]easyphp
Jerry's built-in shutdown current is 1.2ua, and then it can't be turned on by long pressing [chapter]
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
Qt QSplitter拆分器
How does Jerry test the wrong touch rate of keys [chapter]
【喜欢的诗词】好了歌
[leetcode] reverse the word III in the string [557]
JS syntax ES6, ES7, es8, es9, ES10, es11, ES12 new features (Abstract)
mysql重置密码,忘记密码,重置root密码,重置mysql密码
Qt QScrollArea
Webrtc audio and video capture and playback examples and mediastream media stream analysis
【板栗糖GIS】arcmap—为什么使用自定义捕捉的时候,经典捕捉的勾要去掉呢?
Objects and object variables