简体   繁体   中英

How can I insert html img?

I'm trying to put an image in my online curriculum from a website of my country. The problem is, when I insert the following code:

<img src="//imageexemple.com/image.png">

The curriculum website, automatically, change my code to:

<img src="http://curriculumonline.com/imageexemple.com/image.png">

In other words, they are adding to my code the http://curriculumonline.com/ text to prevent we import images out of their server.

I would like to know if there is any other way to try to insert the image from external website. I already tried "background-image: url" but doesnt work because they also remove the / when you use "background-image: url".

Use the full image source path, like

<img src="http://imageexemple.com/image.png">

Instead of

<img src="//imageexemple.com/image.png">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM