响应式网页设计

In the rapidly evolving landscape of connected devices, responsive web design continues to be crucial in web development.

在连接设备Swift发展的格局中,自适应Web设计在Web开发中仍然至关重要。

Not long ago the term "responsive web design" was non-existent. But today, most of us have had to adopt it to some extent.

不久前,“响应式网页设计”一词不复存在。 但是今天,我们大多数人不得不在某种程度上采用它。

According to Statistica, as of 2019, 61% of all Google search visits take place on a mobile device. In September of 2020 Google will change its search algorithm to prioritize mobile friendly websites.

根据Statistica的数据 ,截至2019年,所有Google搜索访问中有61%发生在移动设备上。 2020年9月, Google将更改其搜索算法,以优先考虑移动友好型网站。

In this post I'll cover the following:

在这篇文章中,我将介绍以下内容:

  • What is responsive web design?
    什么是响应式网页设计?
  • The viewport meta tag and what it does
    视口元标记及其作用
  • Effective techniques used in responsive web design to accommodate mobile and tablet devices
    响应式网页设计中使用的有效技术,以适应移动设备和平板电脑设备
  • Tools to help simulate and monitor mobile and tablet user experience
    帮助模拟和监控手机和平板电脑用户体验的工具

什么是响应式网页设计? (后退) (What is Responsive Web Design? (RWD))

Responsive web design is an approach that focuses on a website user’s environment. The user's environment will depend on which device they have connected to the internet.

响应式网页设计是一种专注于网站用户环境的方法。 用户的环境将取决于他们连接到互联网的设备。

There are many device characteristics that provide opportunities for user-centric focus. Some of these include:

有许多设备特性为以用户为中心的关注提供了机会。 其中一些包括:

  • network connection
    网络连接
  • screen size
    屏幕尺寸
  • type of interaction (touch screens, track pads)
    互动类型(触摸屏,触控板)
  • graphic resolution.
    图形分辨率。

Before responsive web design was popular, many companies managed an entirely separate website that received traffic forwarded based on the user-agent.

在响应式Web设计流行之前,许多公司管理着一个完全独立的网站,该网站接收基于用户代理转发的流量。

But in responsive web design the server always sends the same HTML code to all devices, and CSS is used to alter the rendering of the page on the device.

但是在响应式Web设计中,服务器始终向所有设备发送相同HTML代码,并且CSS用于更改设备上页面的呈现方式。

Regardless of the two strategies above, the first step in creating a website for phone or tablet is to ensure the browser knows the intention. This is where the viewport meta tag comes into play.

无论采用上述两种策略,创建用于手机或平板电脑的网站的第一步都是要确保浏览器知道意图。 这是视口meta标签起作用的地方。

视口元标记可识别移动网站 (The Viewport Meta Tag to Identify a Mobile Website)

The meta viewport tag instructs the browser how to adjust the page to the width of each device.

meta视口标签指示浏览器如何将页面调整为每个设备的宽度。

When the meta viewport element is absent, mobile browsers will display web pages with default desktop settings. This results in a seemingly zoomed out, unresponsive experience.

缺少meta视口元素时,移动浏览器将显示具有默认桌面设置的网页。 这导致看似缩小,无响应的体验。

Below is a standard implementation:

下面是一个标准实现:

Now that the browser knows what's going, we can utilize popular techniques to make our website responsive.

响应式网页设计_响应式网页设计–如何使网站在手机和平​​板电脑上看起来不错相关推荐

  1. 餐饮管理系统 mysql数据库设计分析_终稿课程设计_餐饮管理系统数据库设计.docOK版(样例3)...

    <课程设计_餐饮管理系统数据库设计.doc>由会员分享,可免费在线阅读全文,更多与<(终稿)课程设计_餐饮管理系统数据库设计.doc(OK版)>相关文档资源请在帮帮文库(www ...

  2. 响应式网页设计_响应式网页设计:我们从这里去哪里?

    响应式网页设计 This article is part of a web development series from Microsoft. Thank you for supporting th ...

  3. 响应式网页设计_响应式网页设计的意义和目的

    响应式网页设计 The following is an exclusive extract from our new book, Jump Start Responsive Web Design, 2 ...

  4. flex如何做响应式设计_响应式设计-您做错了!

    flex如何做响应式设计 Responsive design is not just about the web that automatically adjusts to different scr ...

  5. 前端设计 响应式设计_响应设计简介

    前端设计 响应式设计 "Responsive Design" as a buzzword has reached peak popularity: we now have book ...

  6. 网页框架布局设计_实用的网页设计-框架和框架用法介绍

    网页框架布局设计 Ah, frames. We hated them when Netscape first offered them up around 1995; we deplored them ...

  7. 小型蘑菇定向切片机设计_鲜枣去核机的设计_玉米脱粒机的设计_振动式马铃薯收获机的设计_谷物干燥机的设计_锤片式饲料粉碎机的设计_山楂去核机的设计_萝卜切丝机设计_板栗去皮机设计_锤式破碎机设计……

    棉花打包机的设计[说明书(论文)+CAD+solidworks] 毕业设计_气动四自由度机械手结构设计(设计说明书+CAD图纸)    套类零件自动上下料机构 玉米脱粒机的设计(说明书+cad图纸+p ...

  8. 旋流式沉砂池计算_旋流沉砂池设计计算.doc

    旋流沉砂池设计计算 钟式旋流沉砂池 设备结构及工作原理: 该套设备由叶轮.转动轴.电动机.减速器和吸砂系统等部分组成:另外在排沙管与砂泵之间安装一个闸阀,砂泵出口处用管道链接至砂水分离器上部进水口. ...

  9. 壁行式起重机设计_玉米播种机的设计_残疾人轮椅设计_破冰除雪机设计_单转子可逆式锤式破碎机设计_全液压升降机设计_振动压路机振动轮设计_旋转型灌装机设计_搬运机械手及其控制系统设计……

    组合机床主轴箱及夹具设计(论文+DWG图纸) 机械毕业设计-玉米播种机的设计(开题报告+任务书+说明书+CAD图纸+答辩PPT) 机械毕业设计-残疾人轮椅设计(含全套CAD图纸)    残疾人轮椅的设 ...

最新文章

  1. 【Qt】通过QtCreator源码学习Qt(四):插件管理PluginManager
  2. 快速解决mongodb出现id重复问题
  3. 目前的计算机聪原理上讲,计算机组成原理-第23-24讲(第7章)+课件.ppt
  4. tomcat上传文件到不同服务器,使用SpringMVC进行跨服务器上传文件出现的那些坑
  5. vector自动扩容如何实现_腾讯云ClickHouse如何实现自动化的数据均衡?
  6. python课程开课吧怎么样-律所:我们更想招这样的人……
  7. x86汇编之任务切换
  8. 为什么短信会在未来几年消亡
  9. ArrayList类源码阅读
  10. Hadoop学习之hadoop安装、JDK安装、集群启动(完全分布式)
  11. oracle imp 换表空间,imp导入切换表空间
  12. 今日笔记:Envi利用bandmath修改特定dn值
  13. qq游戏坦大战服务器维护中,高手教你如何解决QQ游戏问题
  14. 如何避免软件行业的薪资天花板?
  15. go实现零停机重启和代码升级endless
  16. unity VR中制作小地图的方法
  17. STM32F103调试出现 while((RCC-CR RCC_CR_PLL2RDY) == 0) 死循环。
  18. 工作方式需要主心骨、承载人
  19. 新加坡国立大学Xinchao Wang老师招收图神经网络方向博士/博后
  20. 机械键盘各种轴的特点

热门文章

  1. WinCE下的USB游戏手柄驱动 GamePad Joystick
  2. python人名最多统计_Python统计字符串中出现次数最多的人名
  3. 第五次网页前端培训(JS基础)
  4. Android 仿doodle jump小游戏
  5. zabbix监控硬件及服务(详解)一
  6. 人工智能开发神器是什么 为何多人用Python入门
  7. iOS 设置表格的背景为透明
  8. [渝粤教育] 西南科技大学 房屋建筑学 在线考试复习资料(1)
  9. 面对二维码地推无法分辨地区之间的优劣,我们该怎么做!
  10. 计算机视觉考研电子科技大学,电子科技大学控制科学与工程考研