官术网_书友最值得收藏!

Introduction to responsive web design

Let's be honest, you already know what responsive web design means. But for the sake of the age-old tradition of pedagogy, I'll explain. Responsive web design is designing a website to optimize for multiple different viewports. What this means is that in this part of the book, I'll be discussing various techniques for creating a webpage that will look good on mobile devices, tablets, desktops, and laptops, and so on.

I'm not a fortune-teller, but I suspect that mobile devices are not disappearing any time soon. In fact, in my work, I've seen the traffic move from desktop to mobile. In many areas, we see that mobile is the primary tool for people's search for information. If it's not the primary one, it's at least a growing audience. Or else, they are the audience that leaves a site that doesn't have a mobile Web presence. Therefore, the demand for web developers who understand responsive design is paramount to the industry. This skill is a must-have if you want to stay current in the developer workforce.

In this chapter, I will discuss responsive elements, layouts, media, typography, and navigation. You can jump ahead to a section you are particularly interested in or read the whole thing from beginning to end. If you follow along through the entire chapter, you should have a good starter template for a responsive website. We'll learn the following:

  • Responsive web design basics
  • The user agent
  • The media query
  • Responsive images with CSS
  • Responsive images with srcset
  • Responsive video
  • Responsive typography
  • Responsive layouts
  • Responsive menus with CSS and JavaScript
主站蜘蛛池模板: 钦州市| 华安县| 张家港市| 陕西省| 客服| 青海省| 惠水县| 包头市| 枣强县| 广灵县| 边坝县| 焦作市| 石景山区| 九寨沟县| 陈巴尔虎旗| 蛟河市| 南木林县| 永定县| 琼结县| 通州区| 阿拉善左旗| 蓬溪县| 中方县| 洛隆县| 西和县| 德化县| 荥阳市| 孟州市| 桑植县| 江城| 肇东市| 龙口市| 阿克| 曲水县| 芦溪县| 高阳县| 德令哈市| 比如县| 陆丰市| 封开县| 石城县|