@media screen and (min-width:700px) and (max-width:800px){
@import 'style-7-9.css'
}
//下面3种方法都有效
@import url("global.css");
@import url(global.css);
@import "global.css";
//指定媒体查询
@import url(example.css) screen and (min-width:800px);
@import url(example.css) screen and (width:800px),(color);
@import url(example.css) screen and (min-device-width:500px) and (max-device-width:1024px);
实现当屏幕宽度大于700px,小于800px时引用外部样式style-7-9.css
最新推荐文章于 2022-08-04 09:00:00 发布