当前位置:网站首页>移动端 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 解决方案
边栏推荐
- 杰理之内置短按再长按,不管长按多长时间都是短按【篇】
- 性能优化----严苛模式
- 杰理之直接触摸样机的顶针反应不正常【篇】
- [chestnut sugar GIS] ArcScene - how to make elevation map with height
- Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
- Analyse des données dossiers d'apprentissage - - analyse simple de la variance à facteur unique avec Excel
- [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?
- 【板栗糖GIS】arcscene—如何做出有高度的高程图
- AES高级加密协议的动机阐述
猜你喜欢
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
Addition, deletion, modification and query of handwritten ORM (object relationship mapping)
百度智能云-创建人脸识别应用
LeetCode 968. Monitor binary tree
Higher order operation of bits
[Solved] Splunk: Cannot get username when all users are selected“
世界环境日 | 周大福用心服务推动减碳环保
Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
Hanging mirror security won four global infosec awards on rsac2022
Share 10 JS closure interview questions (diagrams), come in and see how many you can answer correctly
随机推荐
Higher order operation of bits
大话云原生之负载均衡篇-小饭馆客流量变大了
LeetCode 968. 监控二叉树
Kubernetes uses the host name to allocate the pod on the specified node
[羊城杯2020]easyphp
Rails 3 activerecord: sort by association count - rails 3 activerecord: order by count on Association
世界环境日 | 周大福用心服务推动减碳环保
大一学习分享
[LeetCode] 多数元素【169】
LC173. 二叉搜索树迭代器
NC50965 Largest Rectangle in a Histogram
泛型与反射,看这篇就够了
Share 10 JS closure interview questions (diagrams), come in and see how many you can answer correctly
Learning records of data analysis (II) -- simple use of response surface method and design expert
悬镜安全在RSAC2022上斩获Global InfoSec Awards四项大奖
Comprehensively analyze the logic of the shared purchase business model? How sharing purchase empowers Enterprises
Lambda表达式:一篇文章带你通透
电商系统微服务架构
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋