Skip to content

[css] 第46天 说说你对媒体查询的理解 #174

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第46天 说说你对媒体查询的理解

Activity

rocky-191

rocky-191 commented on Jun 2, 2019

@rocky-191

当年做响应式布局的时候用过媒介查询,media query。包括现在有的时候为了兼容也会用到一些,查找对应范围使用不同的样式

wenyejie

wenyejie commented on Jun 3, 2019

@wenyejie

为了适应不同的设备终端

blueRoach

blueRoach commented on Jul 22, 2020

@blueRoach

是用来适配各个尺寸设备的一个手段
最好还是写两套比较好

maxthonl

maxthonl commented on Oct 29, 2020

@maxthonl

媒体查询可不只是为了适应终端尺寸的,比如你做了一个网页看起来很漂亮,手机电脑平板都没啥大问题,但是如果你需要打印出来的时候,你会发现布局好像不是那么回事了,而且有时候你希望的是我打印的时候是不需要打印一些只需要体现在网页上的元素,这些media query都可以解决的,例如:

@media print{
    .site-footer-credits{ display: none;}
    .noprint {display: none;}
    .page-header {text-align: left}
}

而这些,其实很多网页做的都不尽如人意

smile-2008

smile-2008 commented on Nov 12, 2020

@smile-2008

当年做响应式布局的时候用过媒介查询,media query。包括现在有的时候为了兼容也会用到一些,查找对应范围使用不同的样式

zxcdsaqwe123

zxcdsaqwe123 commented on Nov 4, 2021

@zxcdsaqwe123

结合bootstrap使用,根据不同的屏宽设置不同的样式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dangjian@smile-2008@wenyejie@haizhilin2013@rocky-191

        Issue actions

          [css] 第46天 说说你对媒体查询的理解 · Issue #174 · haizlin/fe-interview