通过媒体查询可以为不同大小和尺寸的媒体定义不同的css,适应相应的设备的显示。 里边引入: css中定义: @media only screen and (max-device-width:480px){}