速查表 Quick Search

CSS3列表 CSS3 List

简介 Introduction

属性 Properties

选择符 Selectors

语法与规则 Rules

取值 Values

单位 Units

附录 Appendix

CSS Hack

问题与经验 Experience

media features orientation

  • 版本:CSS3
  • 是否接受min/max:否

语法:

orientation:portrait | landscape

取值:

portrait:
指定输出设备中的页面可见区域高度大于或等于宽度
landscape:
除portrait值情况外,都是landscape

说明:

定义输出设备中的页面可见区域高度是否大于或等于宽度。
  • 本特性不接受min和max前缀。
  • 简单列举几个应用示例:

    @media screen and (orientation:portrait){ … }
    @import url(example.css) screen and (orientation:landscape);

兼容性:

  • 浅绿 = 支持
  • 红色 = 不支持
  • 墨绿 = 部分支持
  • 橙色 = 实验性质
支持版本\类型 IE Firefox Safari Chrome Opera
较早版本 6.0-8.0 4.0-6.0 5.1 13.0 11.50-11.51
较近版本 9.0

示例: