用js引入样式表

  1.                                                               
  2.   var targetCss= document.createProcessingInstruction('xml-stylesheet''href="chrome://browser/content/cssTest/boxStyle.css" type="text/css"');
  3.   document.insertBefore(targetCss,document.documentElement);  

用js引入样式表

你可能感兴趣的:(chrome)