---
title: "Discussion on \"一些常见的移动端适配方案，你了解吗？\" | Hashnode"
description: "Discussion on \"一些常见的移动端适配方案，你了解吗？\". 移动端设备的尺寸很多，而 UI 设计稿一般只会基于一个尺寸（一般是 375px 或 750px ）进行设计。\n目前移动端适配方案有多种，本文将介绍一些具有代表性的适配方案。\n媒体查询 @media\nCSS3 中的媒体查询属性 @media 分别为不同屏幕尺寸的移动设备编写不同尺寸的 css 属性，示例如下所示：\n/* <375px */\n@media screen and (max-width:375px) { \n  .box {\n    width: 100%;\n  }\n}\n/* >=375p..."
url: "https://hashnode.com/posts/5lia5lqb5bi46keb55qe56e75yqo56uv6ycc6ywn5pa55qgi77ym5l2g5lqg6kej5zcx77yf/63ee87e0cc84919e4d0d449c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [一些常见的移动端适配方案，你了解吗？](https://qiuqiu.hashnode.dev/5lia5lqb5bi46keb55qe56e75yqo56uv6ycc6ywn5pa55qgi77ym5l2g5lqg6kej5zcx77yf?utm_source=hashnode&utm_medium=feed)

移动端设备的尺寸很多，而 UI 设计稿一般只会基于一个尺寸（一般是 375px 或 750px ）进行设计。 目前移动端适配方案有多种，本文将介绍一些具有代表性的适配方案。 媒体查询 @media CSS3 中的媒体查询属性 @media 分别为不同屏幕尺寸的移动设备编写不同尺寸的 css 属性，示例如下所示： /\* <375px \*/ @media screen and (max-width:375px) { .box { width: 100%; } } /\* >=375p...

Feb 16, 2023 · 2 min read · qiuqiu.hashnode.dev  
Read the article

-   [#5ymn56uv](https://hashnode.com/tag/5ymn56uv)

## Written by

[qiuqiu](https://hashnode.com/@Summer99)

@Summer99

  
[View profile](https://hashnode.com/@Summer99)

all in web3

Learner / Front-End Developer / Social Media Writer. I'm available for everything tech!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
