问题
I love working with Codepen and I'm trying to import a css file from Pastebin.
Here is a link to my external file hosted on Pastebin:
http://pastebin.com/raw.php?i=mj9dmzZw
and inside that file I link to my actual font files.
I'm not sure what I'm doing wrong. Could anyone point me in the right direction or let me know if this is even possible.
Here is the actual codepen. http://codepen.io/ryanjgill/pen/CLitH
Inside the CSS section I have commented out the styling that I'm trying to include with the external CSS file. If you uncomment the styling for the iconfonts, you will see icons in the column 'Type'.
I have tried linking the flie in the settings of the css section that is built into codepen. And using the "@include url('http://pastebin.com/raw.php?i=mj9dmzZw')" inside the css.
回答1:
Well, on CodePen page, there is a small letter 'g' top-right of css input box. You can import your .css there i think.
If you need some .css extension to your file for importation, just create a new file.css and @import your Pastebin css from within your new file.css
来源:https://stackoverflow.com/questions/15115596/problems-importing-external-css-files-on-codepen-io