求大神,上网找过了,但还是找不到合适的

解决方案 »

  1.   

                int SH = Screen.PrimaryScreen.Bounds.Height;
                int SW = Screen.PrimaryScreen.Bounds.Width;              增加程序集引用 System.Windows.Forms; 
                然后在 前台 根据不同大小指定不同的SRC
                如
                   <script src="<%=src1%>" type="text/javascript"></script>
      

  2.   

    JQuery 动态加载CSS与JS脚本文件 $.extend({
        includePath: '',
        include: function(file)
        {
            var files = typeof file == "string" ? [file] : file;
            for (var i = 0; i < files.length; i++)
            {
                var name = files[i].replace(/^\s|\s$/g, "");
                var att = name.split('.');
                var ext = att[att.length - 1].toLowerCase();
                var isCSS = ext == "css";
                var tag = isCSS ? "link" : "script";
                var attr = isCSS ? " type='text/css' rel='stylesheet' " : " language='javascript' type='text/javascript' ";
                var link = (isCSS ? "href" : "src") + "='" + $.includePath + name + "'";
                if ($(tag + "[" + link + "]").length == 0) document.write("<" + tag + attr + link + "></" + tag + ">");
            }
        }
    });
    $.include(['http://image.esunny.com/script/jquery.divbox.js','/css/pop_win.css']);
      

  3.   


    我是用于分辨手机屏幕和PC屏幕的,JQ会不会用不了