orientation简介
orientation定义和用法
orientation:portrait | landscape
orientation属性值
- portrait:
- 指定输出设备中的页面可见区域高度大于或等于宽度
- landscape:
- 除portrait值情况外,都是landscape
orientation说明
定义输出设备中的页面可见区域高度是否大于或等于宽度。
- 本特性不接受min和max前缀。
-
简单列举几个应用示例:
@media screen and (orientation:portrait){ … }
@import url(example.css) screen and (orientation:landscape);
来源:http://caibaojian.com/css3/properties/media-queries/orientation.htm