标签:pos transform only 查询 flow over 像素 for 移动端
.borderOnePx{ position: relative; } .borderOnePx::after { content: ‘‘; height:1px; background:#000; -webkit-transform: scaleY(0.5); -webkit-transform-origin:0 0; overflow: hidden; } /* 2倍屏 */ @media only screen and (-webkit-min-device-pixel-ratio: 2.0) { .borderOnePx::after { -webkit-transform: scaleY(0.5); transform: scaleY(0.5); } } /* 3倍屏 */ @media only screen and (-webkit-min-device-pixel-ratio: 3.0) { .borderOnePx::after { -webkit-transform: scaleY(0.33); transform: scaleY(0.33); } }
标签:pos transform only 查询 flow over 像素 for 移动端
原文地址:https://www.cnblogs.com/binmengxue/p/11646180.html