通过媒体查询可以为不同大小和尺寸的媒体定义不同的css,适应相应的设备的显示。
<head>里边
<link rel="stylesheet" type="text/css" href="xxx.css" media="only screen and (max-device-width:480px)">
CSS : @media only screen and (max-device-width:480px) {/css样式/}
通过媒体查询可以为不同大小和尺寸的媒体定义不同的css,适应相应的设备的显示。
<head>里边
<link rel="stylesheet" type="text/css" href="xxx.css" media="only screen and (max-device-width:480px)">
CSS : @media only screen and (max-device-width:480px) {/css样式/}
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。