V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
honkew
V2EX  ›  浏览器

chrome 浏览器插件 页面子框架载入 css 问题

  •  
  •   honkew · 2016-05-27 11:50:02 +08:00 · 3028 次点击
    这是一个创建于 2889 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我的想法是这样的

    var csspath = chrome.extension.getURL('/js/main.css'); fr.find("head").append("<link>"); a = fr.find("head").children(":last"); a.attr({ rel: "stylesheet", type: "text/css", href: csspath });

    http://ww2.sinaimg.cn/large/87c01ec7gw1f49swvra8tj215a023jsb.jpg http://ww4.sinaimg.cn/large/87c01ec7gw1f49sxct2twj20na0133z8.jpg

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5181 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:29 · PVG 17:29 · LAX 02:29 · JFK 05:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.