如何在不移动图像下方的其他文本的情况下水平对齐图像和文本
我喜欢这样做(样本 XXXXX 是大图)
XXXXXXXX This is a big image.
XXXXXXXX all text should not goes
XXXXXXXX down the image
XXXXXXXX
但问题是我的文字在图像上
XXXXXXXX This is a big image.
XXXXXXXX
XXXXXXXX
XXXXXXXX
all text should not goes down the image
请帮助我。
这是我的代码
<div id = 'wrap'>
<div class='image'>
<img src="/test/1.jpg" />
This is a big image all text should not goes down the image
</div>
<div class='image'>
<img src="/test/2.jpg" />
This is a big image all text should not goes down the image
</div>
</div>
我使用的CSS...
#wrap {
overflow: auto;
height: 300px;
}
.image{
border-top-style:outset;
}
#wrap > div > img {
width : 80px;
height : 70px;
margin-left:5px;
margin-top:5px;
margin-bottom:5px;
padding-bottom: 4px;
float:left;
clear:left;
}