如何根据不同屏幕动态加载 CSS 和 JS 求大神,上网找过了,但还是找不到合适的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int SH = Screen.PrimaryScreen.Bounds.Height; int SW = Screen.PrimaryScreen.Bounds.Width; 增加程序集引用 System.Windows.Forms; 然后在 前台 根据不同大小指定不同的SRC 如 <script src="<%=src1%>" type="text/javascript"></script> 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']); 我是用于分辨手机屏幕和PC屏幕的,JQ会不会用不了 csdn论坛中如何发送本机图片啊 大家看看我建立的滚动图片,的问题。帮我改改 asp.net信息列表怎么做 textbox有DataBindings属性么? table 的使用 问大家一个很简单的问题哦。。。大家不要笑 ASP.NET 刷新后重复提交的问题 初学ASP。NET,有点问题,请指教! 怎么用JS接收 从另一界面传过来的值 easyui +mvc 登录时的传值问题 如何只取记事本最后一条记录 ASP.net 读取MySql 数据出现中文乱码!
int SW = Screen.PrimaryScreen.Bounds.Width; 增加程序集引用 System.Windows.Forms;
然后在 前台 根据不同大小指定不同的SRC
如
<script src="<%=src1%>" type="text/javascript"></script>
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']);
我是用于分辨手机屏幕和PC屏幕的,JQ会不会用不了