`
028wz
  • 浏览: 9158 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

使用JS判断域名加载不同的CSS

 
阅读更多
host = window.location.host;
if (host=="www.028wz.net") 
{ 
document.write("<style>")
document.write(".head{ background: url(document.write("</style>")
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics