//1、在html中引入
<link rel="stylesheet" href="./../css/historicaly.css" media="screen and (max-width:1920px) and (max-height: 1080px)" />
<link rel="stylesheet" href="./../css/historicaly-1440.css" media="screen and (min-width:2048px) and (min-height: 1200px)" />
//2、在css中使用
@media screen and (min-width:2048px) and (min-height: 1200px) {}
通过媒体查询引入相关的css文件
最新推荐文章于 2023-08-11 08:26:35 发布