当前位置: 首页 > news >正文

三大电商平台是哪三个宁波seo网站服务

三大电商平台是哪三个,宁波seo网站服务,做网站一般都是织梦,小程序开店流程HTML 计算网页的PPI vscode上安装live server插件&#xff0c;可以实时看网页预览 有个疑问&#xff1a; 鸿蒙density是按照类别写死的吗&#xff0c;手机520dpi 折叠屏426dpi 平板360dpi <html lang"en" data - overlayscrollbars - initialize><header&…

HTML 计算网页的PPI

vscode上安装live server插件,可以实时看网页预览
有个疑问: 鸿蒙density是按照类别写死的吗,手机520dpi 折叠屏426dpi 平板360dpi

<html lang="en" data - overlayscrollbars - initialize><header></header><body><div><div id="messageID">heheh</div></div><script>function getdpi2() {const dpr = window.devicePixelRatio || 1;const measureDiv = document.createElement("inchUnitId");measureDiv.style.cssText = `width: 1in;height: 1in;border - color: blue;position: absolute;top: 0;left: 0;display: flex;`;document.body.appendChild(measureDiv);window.getComputedStyle(measureDiv).width;window.getComputedStyle(measureDiv).height;const cssWidth = measureDiv.offsetWidth;const cssHeight = measureDiv.offsetHeight;const physicalWidth = cssWidth / dpr;const physicalHeight = cssHeight / dpr;const dpx = Math.round(physicalWidth);const dpy = Math.round(physicalHeight);const screenWidth = window.screen.width * dpr;const screenHeight = window.screen.height * dpr;const screenRatio = (screenWidth / screenHeight).toFixed(4);const ppi = (Math.sqrt(Math.pow(physicalWidth, 2) + Math.pow(physicalHeight, 2)) /Math.sqrt(2)).toFixed(4);const vppi = (ppi / 160).toFixed(4);// 手机ppi 应为 528dpiconst phonePPI =Math.sqrt(Math.pow(1280, 2) + Math.pow(2720, 2)) / 6.82;const phoneVPPX = (phonePPI / 160).toFixed(4);// 平板ppi应为 366dpiconst tablePPI =Math.sqrt(Math.pow(2560, 2) + Math.pow(1600, 2)) / 10.8;const tableVPPX = (tablePPI / 160).toFixed(4);// foldablePPI 应为 224dpiconst foldablePPI =Math.sqrt(Math.pow(2224, 2) + Math.pow(2406, 2)) / 7.85;const foldableVPPX = (foldablePPI / 160).toFixed(4);const messageID = document.getElementById("messageID");messageID.innerHTML = `<p>dpx:${dpx}</p>                                                                                                                                      <p>dpy:${dpy}</p><p>ppi:${ppi}</p><p>phonePPI:${phonePPI}  phoneVPPX:${phoneVPPX}</p><p>tablePPI:${tablePPI}  tableVPPX:${tableVPPX}</p><p>foldablePPI:${foldablePPI}  foldableVPPX:${foldableVPPX}</p><p>vppx:${vppi}</p><p>devicePixelRatio:${devicePixelRatio}</p><p>physicalWidth:${physicalWidth}</p><p>physicalHeight:${physicalHeight}</p><p>window.screen.width:${window.screen.width}</p><p>window.screen.height:${window.screen.height}</p>`;document.body.removeChild(measureDiv);}setInterval(() => {getdpi2();}, 200);</script></body>
</html>

在这里插入图片描述

http://www.cadmedia.cn/news/4818.html

相关文章:

  • 博览局网站建设广州seo公司排行
  • 网站建设与管理案例教程教学大纲北京网站托管
  • 网站收录服务百度图片搜索网页版
  • 那些公司做网站百度账号批发网
  • 苍南配网设计seo入门培训班
  • 临城网站建设服务热线百度seo建议
  • 泰州企业模板建站日照网站优化公司
  • 江西建设三类人员网站百度关键词优化大师
  • 怎么做网站不用备案seo积分优化
  • 企业网站建设多少家宣传推广计划
  • 厦门关键词seo排名网站在线友情链接
  • 福州网站建设公司哪家好seo基础知识
  • 郑州做网站九零后今日头条最新消息
  • 网站怎么放到服务器百度最新人工智能
  • 免费建立属于自己的网站在线生成网站
  • 东莞网站建设aj网站优化推广招聘
  • 东莞高端做网站推广普通话手抄报一等奖
  • 杭州设计企业网站高端公司近一周的新闻大事热点
  • 学网站平面设计廊坊seo
  • 网站建设课程毕设seo哪个软件好
  • 惠州网站建设公司推荐乐云seo杭州seo运营
  • 全国软件开发公司排名前一百seo论坛站长交流
  • 企业网站怎么优化百度地址
  • b2c平台网站北京百度快速优化排名
  • 前端好学还是后端好学宝鸡seo
  • 网站建设 提供源码芭蕉视频app无限次数
  • 学做日料的网站网站ip查询
  • 广州网站建设公网站关键词查询网址
  • 百度搜索网百度快速收录seo工具软件
  • 深圳网站建设定制开发超凡科技seo网站优化服务合同