如何使用javascript判断不同的浏览器类型以调用不用的css?




























以上代码放在<head></head>之间。
document.getElementsByTagName("link")[0].href="/blog/css/"+title; 这一行中的0是指第一个名为<link>的标签,改为1,则表示第二个名为<link>的标签。
本文地址:http://www.45fan.com/a/question/72526.html
如何使用javascript判断不同的浏览器类型以调用不用的css?
以上代码放在<head></head>之间。
document.getElementsByTagName("link")[0].href="/blog/css/"+title; 这一行中的0是指第一个名为<link>的标签,改为1,则表示第二个名为<link>的标签。