search
HomeWeb Front-endHTML TutorialResponsive WEB design_html/css_WEB-ITnose

I have recently been learning about responsive design and have sorted it out. Some of the pictures are from the Internet.

1. Why responsive web design is needed

Due to the current large-scale use of mobile devices and the gradual large differences in the size of PC monitors, traditional web pages have It cannot meet the browsing effect of multiple devices. For example, traditional pages will have a large blank area in large browsers, but in small browsers and mobile devices, the page cannot be fully displayed, or the page can be reduced to fit the size of mobile devices. The size cannot be browsed normally, and it also affects click points. Many people will choose to enlarge the page while browsing, so the entire page needs to be dragged continuously, giving the user a bad experience.

In short, there are the following points:

  • Various screen sizes
  • Various operating systems
  • Various access devices
  • Various needs

  • 2. What is responsive web design

    A website is compatible with multiple terminals.

  • The same code
  • Through device adaptation
  • Satisfies different access devices
  • Can show different effects
  • Always content Prioritized
  • Mobile-first: unobtrusive js and incremental enhancement
  • Browser-based: incremental enhancement of features and device detection
  • 3. Alternatives to responsive design

    Develop a completely independent mobile version of the website and develop a mobile application APP. However, there are certain shortcomings in doing so:

  • Developing an independent version of the web page can be jumped through device adaptation. Multiple pages need to be maintained. It is suitable for homepage-level pages but not suitable for content pages
  • Developing mobile applications has high development costs and is not conducive to search engine inclusion
  • 4. Advantages & disadvantages of responsive web design

    Advantages:

  • Multi-terminal visual and operating experience styles are unified
  • Low development, maintenance and operation costs
  • Strong compatibility between different devices
  • Flexible operation: Responsive design is for Page, you can only change the necessary page parts
  • User-friendly: users can always keep in touch with the website, for example, the URL remains unchanged
  • Accumulation and sharing: collect all data through a single URL address Social sharing links
  • Search engine optimization: can complete the connection between mobile website and desktop website
  • No redirection: Contains no user agent redirection
  • Disadvantages:

  • Compatibility: Lower version browsers may have incompatibility issues
  • Mobile bandwidth traffic: Compared with the mobile version of the customized website, the traffic is slightly larger
  • Loading takes a certain amount of time: in response In style design, you need to download some HTML and CSS that seem unnecessary. In addition to this, the images are not resized appropriately for the device, which officially doubles the loading time
  • Search engine optimization: With responsive web design, determining keywords for search engines is not an easy task thing. Therefore, compared with ordinary desktop users, mobile users use different keywords, and it is more difficult to modify titles and other matters
  • Google ranking: If a responsive website is only based on mobile content, it will be difficult to affect the website's ranking. Google ranking. Because Google does not support such websites, it will not index your website
  • Time spent: Developing a responsive website is a time-consuming task. If you plan to convert an existing website into a responsive one, it may take even more time. If you want a responsive website, it’s best to redesign it from a sketch
  • Layout: The layout of responsive web design is mainly liquid, which is why designers have poor control over design styles. And now is the time for designers to show off various "replicas" in advance. The designer attempted to display wireframes and design prototypes separately for mobile and desktop layouts. Only when both layouts are improved can a responsive web design strategy be truly realized.
  • 5. The difference between responsive and adaptive

     Responsive layout: fluid network

  • Changes in the layout of the web page
  • Rearrangement
  • Better user experience
  • Difficult to test
  • Adaptive layout: fixed breakpoints

  • Complete scaling of web pages
  • Low implementation cost
  • Easy to test
  • Design more controllable
  • 6. Mobile terminal screen elements

    Mobile device browser core: Trident (IE), Gecko (FF), Presto (opera, obsolete), Webkit (Safari, chrome), Blink (google)

    Mobile device size: iPhone (980), iPad (1024), Android (resolution 480*800, 980), WinPhone (1024), etc.

    Resolution of mobile device:

     

    7. Responsive web design process

    User research and device specification estimation

    Framework prototype planning and testing

    Visual design

    Front-end construction

    Statement
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

    The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

    HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

    The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

    The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

    The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

    HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

    The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

    HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

    HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

    HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

    HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

    From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

    HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

    Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

    WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

    See all articles

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Tools

    SublimeText3 Linux new version

    SublimeText3 Linux new version

    SublimeText3 Linux latest version

    Dreamweaver Mac version

    Dreamweaver Mac version

    Visual web development tools

    ZendStudio 13.5.1 Mac

    ZendStudio 13.5.1 Mac

    Powerful PHP integrated development environment

    SecLists

    SecLists

    SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)