![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
移动端
陈可儿ckr
小白程序员
展开
-
移动端判断设备
<script> function browserRedirect() { var curURL = window.location.href; var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(.原创 2022-04-06 10:52:23 · 81 阅读 · 0 评论 -
移动端媒体查询倍图设置
/* 1倍图 */ @media screen and (-webkit-min-device-pixel-ratio: 1){} /* 2倍图 */ @media screen and (-webkit-min-device-pixel-ratio: 2){} /* 3倍图 */ @media screen and (-webkit-min-device-pixel-ratio: 3){}原创 2022-04-06 10:25:32 · 241 阅读 · 0 评论 -
移动端px和rem转换
浏览器默认字体大小是16pxeg:font-size:625% 就相当于16*625%=100pxheight:0.9rem;就相当于100*0.9=90px原创 2022-04-06 09:42:23 · 485 阅读 · 0 评论 -
移动端用户自定义代码片段
5.讲代码块粘贴到.json中{ "html": { "prefix": "html", "body": [ "<!DOCTYPE html>", "<html>\n", "<head>", "\t<meta charset=\"UTF-8\">", "\t<meta name=\"viewport\" content=\"width=device-width, initial-scal...原创 2022-04-05 15:54:57 · 55 阅读 · 0 评论