当前位置:网站首页>移动端 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 解决方案
边栏推荐
- Golang interview finishing three resumes how to write
- 杰理之样机无触摸,拆机之后重新安装变正常【篇】
- The threshold value of fusing proportion cannot be changed with sentinel, and setting the slow call proportion has no effect
- Methods of adding styles to native JS
- 佩服,竟然有人把高等数学这么晦涩难懂的科目,讲解得如此通俗易懂
- `Usage of ${}`
- [NPUCTF2020]ezlogin xPATH注入
- PHP implements querying the data matching the date of birth according to the entered age
- 图形视图框架
- Learning records of data analysis (II) -- simple use of response surface method and design expert
猜你喜欢
![[LeetCode] 多数元素【169】](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[LeetCode] 多数元素【169】

Kubernetes uses the host name to allocate the pod on the specified node

成功改变splunk 默认URL root path
![[leetcode] most elements [169]](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[leetcode] most elements [169]
![[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')

Objects and object variables

牛客网:龙与地下城游戏
![NC24325 [USACO 2012 Mar S]Flowerpot](/img/cf/86acbcb524b3af0999ce887c877781.png)
NC24325 [USACO 2012 Mar S]Flowerpot

E-commerce system microservice architecture

百度智能云-创建人脸识别应用
随机推荐
[chestnut sugar GIS] ArcScene - how to make elevation map with height
Go condition variable
JS syntax ES6, ES7, es8, es9, ES10, es11, ES12 new features (Abstract)
Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
数组进阶提高
[LeetCode] 多数元素【169】
Introduction and response to high concurrency
Oracle PL / SQL programming
Objects and object variables
Rails 3 activerecord: sort by association count - rails 3 activerecord: order by count on Association
kubernetes 使用主机名将 pod 分配在指定节点上
Lambda表达式:一篇文章带你通透
MySQL reset password, forget password, reset root password, reset MySQL password
全面解析分享购商业模式逻辑?分享购是如何赋能企业
牛客网:最大子矩阵
Graphic view frame
Local dealers play the community group purchase mode and share millions of operations
odoo13搭建医院HRP环境(详细步骤)
[LeetCode] 存在重复元素【217】
P7072 [csp-j2020] live broadcast Award