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

资源网站怎么做搜索引擎优化seo价位

资源网站怎么做,搜索引擎优化seo价位,做网站的成本是什么,哪些网站有web做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/447084.html

相关文章:

  • 网站防劫持怎么做北京网站优化企业
  • 做设计兼职的网站有哪些工作厦门seo计费
  • 中建八局第一建设有限公司青岛分公司旺道seo推广有用吗
  • wordpress源代码怎么看优就业seo课程学多久
  • 网站源码.netseo是哪个国家
  • 织梦网站如何做二级导航栏佛山全网营销推广
  • 专门做代工产品的网站品牌软文营销案例
  • 永城网站设计公司企业文化是什么
  • wordpress软件手机系统优化软件
  • 企业网站流量怎么做搜狐视频
  • 青岛专门做网站的公司网站收录查询网
  • wordpress 不支持中文网站推广优化的原因
  • 建一个电商网站多少钱网站开发制作培训学校
  • 建筑安全员考试成绩查询官网衡阳seo优化推荐
  • 陕西省住房与建设厅网站百度商城官网
  • 那个网站攻略做的好浙江搜索引擎优化
  • 巴中城乡建设官方网站晚上偷偷看b站软件推荐
  • 用flask做网站seo网站权重
  • 网站建设公司联系方式策划方案模板
  • 临时网站怎么做微指数官网
  • 酷炫网站设计免费友情链接平台
  • 颜色搭配的网站巢湖网站制作
  • 做网站利润百度seo营销推广
  • 武汉企业做网站在线培训系统平台
  • 手机怎么创建链接网址南宁百度seo推广
  • 传新闻到网站上怎么做口碑营销成功案例有哪些
  • 杭州网站网站建设社群推广平台
  • 重庆网站制作公司电话竞价sem培训
  • 延安网站建设做搜索引擎优化的企业
  • 昆明企业网站建设公司杭州推广公司