20分求助 关于两种分辨的自动识别 如何实现 通过判断screen.height和screen.width来动态切换css文件 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 具体怎么写呢?楼上的能详细说明下吗css就不用说了 ,script具体怎么写? if (screen.width>800) {alert("1024");} else {alert("800");// to do..} 都写成这样了 就不能把好人做到底具体些吗?1024的是css1 800的是css2明天就要用了 大家帮忙下啊 汗奔~~ 关键是怎么让script去自动执行2个css <script type="text/javascript"> //<![CDATA[if (screen.width>800) {document.write("<link rel='stylesheet' href='1.css' type='text/css'>");} else {document.write("<link rel='stylesheet' href='2.css' type='text/css'>");} //]]> </script> JQuery 的 fadeTo() 求解 关于用javascript调用打印机打印页面,能否横版显示? 请教IE7图片上传预览的问题 请大家介绍一本JS的好书。 在IE端实现单点登录的问题,高分征求意见 编码转换问题 关于脚本中的文件对象 indexOf的疑问? 怎么判断窗口已经弹出了! 我想在某个事件,比如 onkeyPress,下能清除页面上的所以项目的focus js客户端使用xmlhttp跨域访问xml的问题。 一个关于javascript通过xsl处理xml,在firefox浏览器里显示的问题。
css就不用说了 ,script具体怎么写?
alert("1024");
} else {
alert("800");
// to do..
}
就不能把好人做到底具体些吗?
1024的是css1 800的是css2明天就要用了 大家帮忙下啊 汗奔~~
//<![CDATA[
if (screen.width>800) {
document.write("<link rel='stylesheet' href='1.css' type='text/css'>");
} else {
document.write("<link rel='stylesheet' href='2.css' type='text/css'>");
}
//]]>
</script>