登录 | 注册 | FAQ
Anonymous

image

+ 发表回复

4 篇帖子 分页: 1 / 1


image

danny » 周二 10月 19, 2010 5:13 pm

how do i insert an image on the web page coz all i can see every time i do it is a red cros
头像

danny

  • 帖子: 1
  • 注册: 周二 10月 19, 2010 3:57 pm

Re: image

HTML.net » 周二 10月 19, 2010 7:05 pm

Hi danny,

Try this code:

<img src="logo.png" />

Where "logo.png" is the name of your image. And place the image in the same folder as the html-file. It should work... Otherwise, try to upload your code here.

- Andreas, HTML.net
头像

HTML.net
Site Admin

  • 帖子: 1194
  • 注册: 周六 9月 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: image

iDana » 周四 10月 28, 2010 6:41 pm

HTML.net 写道:Hi danny,

Try this code:

<img src="logo.png" />

Where "logo.png" is the name of your image. And place the image in the same folder as the html-file. It should work... Otherwise, try to upload your code here.

- Andreas, HTML.net


This is how I finally managed to do it: first of all place the image in the same folder as what your html website and project is in then jjust type in the following code but with your file names < img src="example.jpg" alt="Example" />
头像

iDana

  • 帖子: 60
  • 注册: 周二 10月 26, 2010 10:05 am
--
iDana

Re: image

lacroixz » 周五 10月 29, 2010 12:31 pm

Just save all your files in your '/images' folder and use <img scr="images/file.extension"> and maybe even use an extra folder for icons like <img src="../icons/file.extension" or <img src"images/icons/file.extension">

Hope it helps!
Greetings,
头像

lacroixz

  • 帖子: 74
  • 注册: 周三 10月 27, 2010 9:26 pm


+ 发表回复

分页: 1 / 1