根据不同的分辨率选择不同的css文件css

/ / 2019-06-24   阅读:2559
<SCRIPT language=javascript> <!-- Begin if (screen.width == 640) { document.write('<link href="/Css/Style.css" rel="stylesheet" type="text/css" />'); }  if (screen.width == 1...
<SCRIPT language=javascript>
<!-- Begin
if (screen.width == 640)
{
document.write('<link href="/Css/Style.css" rel="stylesheet" type="text/css" />');

if (screen.width == 1440)
{
document.write('<link href="/Css/tp5.css" rel="stylesheet" type="text/css" />');

if (screen.width == 1024)
{
document.write('<link href="/Css/tp3.css" rel="stylesheet" type="text/css" />');
}
if (screen.width == 1280)
{
document.write('<link href="/Css/tp1.css" rel="stylesheet" type="text/css" />');

if (screen.width == 1600)
{
document.write('<link href="/Css/tp2.css" rel="stylesheet" type="text/css" />');
}
 // End -->
</SCRIPT>

我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈