honkew
V2EX  ›  浏览器

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

  •  
  •   honkew · May 27, 2016 · 3724 views
    This topic created in 3715 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   ·   5260 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 08:42 · PVG 16:42 · LAX 01:42 · JFK 04:42
    ♥ Do have faith in what you're doing.