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

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

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

    我的想法是这样的

    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   ·   我们的愿景   ·   实用小工具   ·   2209 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:38 · PVG 08:38 · LAX 17:38 · JFK 20:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.