当前位置:网站首页>移动端 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 解决方案
边栏推荐
- go 4种单例模式
- What is the'function'keyword used in some bash scripts- What is the 'function' keyword used in some bash scripts?
- World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
- 【板栗糖GIS】arcmap—如何批量修改注记要素的字体,颜色,大小等
- 小鹏P7出事故,安全气囊未弹出,这正常吗?
- Using rendertext() to output multiple lines of text with rendertext() in R shiny
- stop slave卡住--事务的事件没有复制完整
- Baidu AI Cloud - create a face recognition application
- NC50965 Largest Rectangle in a Histogram
- [Solved] Splunk: Cannot get username when all users are selected“
猜你喜欢

泛型与反射,看这篇就够了

PMP项目整合管理

Addition, deletion, modification and query of handwritten ORM (object relationship mapping)

uniapp微信登录返显用户名和头像
![[chestnut sugar GIS] ArcScene - how to make elevation map with height](/img/91/f3df0a7633263c6264cb5c27eb149f.png)
[chestnut sugar GIS] ArcScene - how to make elevation map with height
![加油站[问题分析->问题转换->贪心]](/img/15/5313f900abedb46ce82d8ab81af1d7.png)
加油站[问题分析->问题转换->贪心]

NC50965 Largest Rectangle in a Histogram

Comprehensively analyze the logic of the shared purchase business model? How sharing purchase empowers Enterprises

`${}`的用法

NC50965 Largest Rectangle in a Histogram
随机推荐
Hanging mirror security won four global infosec awards on rsac2022
Array advanced improvement
首批 | 腾讯云完成国内首个云原生安全成熟度评估
Jatpack------LiveData
Objects and object variables
世界环境日 | 周大福用心服务推动减碳环保
Film and television excerpts
Uniapp wechat login returns user name and Avatar
[chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements
全面解析分享购商业模式逻辑?分享购是如何赋能企业
How should programmers write logs
kubernetes 使用主机名将 pod 分配在指定节点上
海思3559万能平台搭建:在截获的YUV图像上旋转操作
How can I use knockout's $parent/$root pseudovariables from inside a . computed() observable?
boot actuator - prometheus使用
Higher order operation of bits
What is the'function'keyword used in some bash scripts- What is the 'function' keyword used in some bash scripts?
数组进阶提高
To myself who is about to work
[羊城杯2020]easyphp