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
Post a Comment