zl程序教程

您现在的位置是:首页 >  前端

当前栏目

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

CSS 调用 不同 根据
2023-06-13 09:13:52 时间
复制代码代码如下:

<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>