js 控制不同客户端 访问不同CSS js
function loadCSS(flag) {
var t='.css';
if((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|wOSBrowser|BrowserNG|WebOS)/i))) {
t="_mobile.css";
}
if(flag=='esfdetail'){
document.write('<link href="'+(baseURL+'/themes/default/css/common'+t)+'" rel="stylesheet" type="text/css" media="screen" />');
document.write('<link href="'+(baseURL+'/themes/default/css/detail'+t)+'" rel="stylesheet" type="text/css" media="screen" />');
}
}