js 兼容360 IE兼容问题,js兼容低端浏览器,360兼容js代码 这个问题主要是因为用html5和css3、最新的jQuery做的网页,在老版本的浏览器上无法正常运行,并且也不打算在做低版本的浏览器兼容。针对普通用户,国内用360浏览器的很多,360浏览器有个极速模式和兼容模式。尔兼容模式由于要向下兼容所有不支持 html5和css3、最新的jQuery。 下面是通过代码强制转换来解决360、IE等的兼容问题: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Expires" content="0"> content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。 若页面需默认用极速核,增加标签:<meta name="renderer" content="webkit"> 若页面需默认用ie兼容内核,增加标签:<meta name="renderer" content="ie-comp"> 若页面需默认用ie标准内核,增加标签:<meta name="renderer" content="ie-stand">
《js 兼容360 IE兼容问题,js兼容低端浏览器,360兼容js代码》上暂无评论!