您现在的位置: 365建站网 > 365文章 > select the appropriate stylesheet according to the users scr

select the appropriate stylesheet according to the users scr

文章来源:365jz.com 点击数:240 更新时间:2009-11-13 23:25

 <script type="text/javascript" src="select_css.js"> </script>

// select_css.js
  // -------------
  // select the appropriate stylesheet according to the user's screen resolution

  document.write("<link rel='stylesheet' type='text/css' href='");

  if (window.screen.height <= 600) {
    //resolution is 800x600 or less
    document.write("small.css'>");
  } else {
    document.write("large.css'>");
  }
   

生产内容,同时打通搜索引擎(SEO)与AI搜索引擎(GEO)流量入口的软件! 点击进入365建站器 »

您可能感兴趣的文章