问题
I have googled and searched for this but I need help. I feel really stupid because I have been using ide's for awhile. Just not cloud based. So how do I add a local image to my cloud9 html page?
回答1:
You could upload your image online then use href
to use the online link.
Otherwise, if you'd still like your image to be local, you can upload files to your workspace like this.
I hope this helps :)
回答2:
you can also use a simple save and drag method.
- save the image in your images folder on your desktop (or where ever)
- open cloud9 project so that you can see your file hierarchy
- click on image saved to your computer
- drag and drop into images folder this is as of 03/2016
回答3:
This works on rails projects on c9, not sure about different environments but worth a try.
curl -O imagelink
mv imagelink app/assets/images/
来源:https://stackoverflow.com/questions/30069283/how-to-add-a-image-to-cloud9