0

我想显示四个图像 - 第一行两个和下面的两个。

出于某种原因,只有顶行显示,我只是不明白为什么。

这是非常简单的代码:

<img class="social" src="http://www.c5d.co.uk/racenight.png" alt="Race Night">
<img class="social2" src="http://www.c5d.co.uk/mothersday.png" alt="Mothers' Day>
<p>
<img class="social" src="http://www.c5d.co.uk/carlosax.png" alt="Carlo Sax>
<img class="social2" src="http://www.c5d.co.uk/eastersunday.png" alt="Easter Sunday"></p> 

网页是: http ://www.c5d.co.uk/socialeventsfour.php

为什么不显示下面的两个图像?

4

2 回答 2

1

因为你忘了关门"Mothers' Day"Carlo Sax在你的第二个和第三个<img>

这是更正后的:

http://jsfiddle.net/ytmvy/2/

<img class="social" src="http://www.c5d.co.uk/racenight.png" alt="Race Night">
<img class="social2" src="http://www.c5d.co.uk/mothersday.png" alt="Mothers' Day">
<p>
    <img class="social" src="http://www.c5d.co.uk/carlosax.png" alt="Carlo Sax">
    <img class="social2" src="http://www.c5d.co.uk/eastersunday.png" alt="Easter Sunday">
</p>
于 2013-02-18T06:22:33.643 回答
1
<img class="social" src="http://www.c5d.co.uk/racenight.png" alt="Race Night" />
<img class="social2" src="http://www.c5d.co.uk/mothersday.png" alt="Mothers' Day" />
<p>
  <img class="social" src="http://www.c5d.co.uk/carlosax.png" alt="Carlo Sax" />
  <img class="social2" src="http://www.c5d.co.uk/eastersunday.png" alt="Easter Sunday" />
</p>

您可以/>在使用 images( img) 时使用。"以及您的alt属性中明显缺失的部分。

于 2013-02-18T06:24:53.400 回答