CSS媒体查询:orientation

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
2020-01-16 10:39 举报

关于挟翼

挟翼一款提供UI页面设计的软件。
您只需要动一动鼠标绘制相关的元素,软件会自动帮你完成CSS样式和HTML代码。
从现在开始注册,立即赠送一年VIP会员。活动结束日期待定。