【问题标题】:How to create resolution-sensitive web pages that adapt themselves automatically?如何创建自动适应的分辨率敏感网页?
【发布时间】:2013-07-14 17:22:34
【问题描述】:

两个示例是 ASP.NET MVC Internet 应用程序模板和在 Dreamweaver 中管理跨各种屏幕分辨率的不同演示文稿的功能。如果我想实现自己,我应该怎么做?实际上,我需要剪掉 MVC 模板附带的一些自动适配,因为它有点搞砸了我的 UI,但我不知道关键部分在哪里。

【问题讨论】:

    标签: asp.net-mvc html visual-studio css dreamweaver


    【解决方案1】:

    查看 CSS 媒体查询。

    您可以执行以下操作:

     @media all and (max-width: 699px) and (min-width: 520px),
        /* Target only screen with resolutions between 520px to  699px;*/
        }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-04
      • 2016-08-20
      • 1970-01-01
      • 1970-01-01
      • 2011-08-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多