Home >Web Front-end >HTML Tutorial >I have two CSS files. According to different screens, how can I use JS to control their import? _html/css_WEB-ITnose
I have two CSS files a.css and b.css
How to use JS statements to control the import into the page according to different conditions?
if(xxx){ document.write("<link href='a.css' ..... />");}else{ document.write("<link href='b.css' ..... />");}