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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -