javascript - How to add a css file like materialize in popup.js of chrome extension? -


actually making chrome extension, have added materialize css popup.html , works when added button in popup.html want append button has materialize css style popup.js.

basically want have materialize style while appending js file.
have tried:

popup.html-

<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/> 

code have tried in(popup.js):

$('head').append('<link rel="stylesheet" href="css/materialize.min.css" type="text/css" />');  $("#demo").append("<a class="waves-effect waves-light btn">button</a>"); 


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -