页面导航: 首页网络编程JavaScript应用技巧 → 正文内容

根据分辩率调用不同的CSS.

发布:dxy 字体:[增加 减小] 类型:转载

<head>
<script language=javascript> 
<!--
if (screen.width == 800)
{
document.write('<link rel=stylesheet type="text/css" href="css800.css">')
}
else {document.write('<link rel=stylesheet type="text/css" href="css1024.css">')}
//-->
</script>
</head>
浏览次数:载入中... 打印本文关闭本文返回首页
·在百度中搜索关于“根据分辩率调用不同的CSS.”相关内容
·在谷歌中搜索关于“根据分辩率调用不同的CSS.”相关内容

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行