CSS媒体查询:width

width简介
width定义和用法

width:<length>

width属性值
<length>:
用长度值来定义宽度。不允许负值
width说明
定义输出设备中的页面可见区域宽度。
  • 与盒模型width不同,媒体特性width的取值只能是<length>。
  • 本特性接受min和max前缀,因此可以派生出min-widthmax-width两个媒体特性。
  • 简单列举几个应用示例:

    @media screen and (width){ … }
    @import url(example.css) screen and (width:800px);
    <link media="screen and (min-width:400px) and (max-width:900px)" rel="stylesheet" href="example.css" />
    <?xml-stylesheet media="not screen and (width:800px)" rel="stylesheet" href="example.css" ?>


来源:http://caibaojian.com/css3/properties/media-queries/width.htm
2020-01-16 10:39 举报

关于挟翼

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