honkew
V2EX  ›  浏览器

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

  •  
  •   honkew · May 27, 2016 · 3732 views
    This topic created in 3719 days ago, the information mentioned may be changed or developed.

    我的想法是这样的

    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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3395 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 00:04 · PVG 08:04 · LAX 17:04 · JFK 20:04
    ♥ Do have faith in what you're doing.