我有一个网站,我在其中通过 jQuery 为元素设置动画。我的问题是,如果您正在访问 iPad,是否可以通过某种方式调用特定功能文件以获得给定的分辨率。在我的脑海中,我已经尝试过,但无论显示器的大小如何,都会更改整个页面的功能。
一般功能。
<script type="text/javascript" src="js/funcionesSobre.js"></script>
具体功能。
<link rel="stylesheet" type="text/css" href="css/iPadPortrait.css" media="only screen and (max-width : 768px) and (orientation : portrait)" />
<script type="text/javascript" src="js/funcionesPortrait.js" media="only screen and (max-width : 768px) and (orientation : portrait)"></script>
你可以通过 jQuery 来调整设计还是只能用 CSS 来制作?