Tagged articles
rem
15 articles · Page 1 of 1
This article explains two practical screen‑adaptation methods—one based on the rem unit and another using CSS scale transforms—detailing their concepts, suitable scenarios, step‑by‑step setup, and full code examples for Vue3 applications built with Vite.
ViteVue3amfe-flexible
0 likes · 7 min read


大转转FEAug 26, 2025 · Frontend Development
This article explains how to adapt H5 product detail pages for foldable devices by comparing PostCSS‑to‑vw, CSS media queries, and a flexible.js + postcss‑px‑to‑rem workflow, then shows how to add foldable‑screen detection logic and layout tweaks to improve readability and content density.
Viewport Unitscss media queriesflexible.js
0 likes · 15 min read

This article explains how to create H5 pages that adapt to any screen size by replacing absolute pixel units with relative rem units, adjusting the root font-size via JavaScript, and demonstrates responsive layouts with practical code examples.
frontendpxrem
0 likes · 11 min read

This guide outlines essential mobile‑frontend strategies—including viewport configuration, rem‑based flexible layouts, media queries, 1 px border fixes, safe‑area handling, responsive images, landscape support, and soft‑keyboard adjustments—providing complete code snippets to ensure seamless adaptation across diverse devices.
frontendmedia queriesmobile
0 likes · 7 min read


21CTOSep 5, 2024 · Frontend Development
This article explains the CSS rem unit, demonstrates how it relates to the root element's font size, and shows practical examples using vw and clamp() to create fluid, responsive typography across different screen sizes.
CSSfont sizerem
0 likes · 5 min read

This article explains the challenges of screen‑size compatibility for front‑end developers, analyzes current device resolutions and aspect ratios, and provides practical solutions such as viewport meta tags, media queries, adaptive units, responsive layouts, device simulation tools, and safe‑area handling for modern browsers and mobile devices.
VWmedia queriesrem
0 likes · 17 min read

This article explains front‑end layout concepts, distinguishing adaptive and responsive designs, lists common mobile screen dimensions, and details practical techniques such as percentage layouts, media queries, rem/vw/vh units, flexbox, as well as classic Holy Grail and double‑wing layouts.
FlexboxLayoutVW
0 likes · 8 min read

This guide compares five mobile H5 layout adaptation methods—percentage, rem, vw/vh, media queries, and flexbox—detailing their principles, implementation code, advantages, disadvantages, and practical tips to help developers choose the most suitable solution for responsive design.
CSSFlexboxmobile layout
0 likes · 26 min read

This comprehensive guide explains the viewport concept, browser behavior, DOM APIs, and practical usage of the Viewport Meta Tag—including width, scale, user‑scalable, and viewport‑fit—while comparing responsive and adaptive design patterns and offering concrete code examples for mobile cross‑screen adaptation.
Mobile WebVWdevice pixel ratio
0 likes · 24 min read

This article explains the fundamentals of mobile web adaptation, covering key concepts such as screen resolution, pixel density, device pixel ratio, viewport types, and presents several practical solutions—including flexible+rem, CSS3 media queries with vw, and pure vw approaches—along with implementation details and case studies.
VWfrontendmobile
0 likes · 20 min read

This article explains how to achieve pixel‑perfect restoration of design drafts on mobile H5 pages by adapting to different pixel densities and screen sizes, using global CSS units like rem and vw, and automating px‑to‑vw conversion with the postcss-px-to-viewport plugin.
CSSVWfrontend
0 likes · 15 min read

This episode of the Quick Q&A column answers common CSS questions—such as element‑specific property limits, the hyphens property, and Chrome’s minimum‑font‑size effect on rem units—while also offering practical career advice for aspiring front‑end developers.
CSSChromerem
0 likes · 7 min read


Aotu LabSep 1, 2016 · Frontend Development
This guide explains how to choose representative mobile device sizes, compares four front‑end adaptation techniques—meta‑scale, percentage width, media‑query responsive, and REM scaling—and offers practical advice for designers and developers to coordinate their workflows for seamless handoff.
adaptationmeta viewportmobile
0 likes · 9 min read

This article examines how to choose between px, %, and rem units for mobile web layouts, discussing width and height uncertainties, the role of media queries, and practical recommendations for using each unit effectively across various screen sizes.
media queriesmobilepercentage
0 likes · 6 min read

This article walks through the development of the HandQ Weather H5 page, covering REM‑based responsive layout, Flexbox sectioning, HTML5 canvas charts and animations, CSS3 transitions, and a suite of performance and compatibility optimizations for mobile browsers.
CanvasFlexboxperformance optimization
0 likes · 20 min read
