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

网站运营专员做六休一关键词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.dtcms.com/wzjs/163172.html

相关文章:

  • 定制家具网站源代码百度关键词推广2元一天
  • 为什么做动漫短视频网站东莞优化排名推广
  • 邯郸永年疫情最新情况外贸网站如何推广优化
  • 济南市建设局网站关键词免费下载
  • 青岛网站建设开发如何找外链资源
  • 货运代理网站模板短视频推广app
  • 网站建设的7种流程专业放心关键词优化参考价格
  • 旅游网站首页图片什么是seo
  • 广州商城网站建设报价黑帽友情链接
  • 网站项目设计说明书龙华网站建设
  • 网站制作价格和流程百度sem竞价推广pdf
  • 如何外贸seo网站建设怎么制作网页
  • 做搜狗手机网站新闻软文发布平台
  • 网站建设的法律问题搜索引擎优化的重要性
  • wordpress滑动图片轮播seo外链怎么做能看到效果
  • 有哪个网站是做水果批发的优化大师班级优化大师
  • 山西建站优化如何做网站赚钱
  • 用wordpress二级菜单导航seo优化搜索推广
  • 珠海特价做网站台州网站制作维护
  • 企业网站设计有名 乐云seo南京seo网络优化公司
  • 小程序做网站打广告去哪个平台免费
  • 淄博网站的建设如何创建一个网站
  • 论坛的网站制作百度24小时人工客服
  • php网站开发干嘛的网络销售平台有哪些软件
  • 大庆网站设计费用营销型网站建设模板
  • wordpress首页不显示文章谷歌seo是指什么意思
  • 重庆市建设厅网站谷歌推广代理
  • 公司网站建设的方案怀化seo推广
  • 微网站建设制作设计厦门推广平台较好的
  • 网络规划设计师百度网盘360优化大师旧版本