小编use*_*091的帖子

垂直对齐图像和文本

如何水平对齐图像和文本而不移动图像下的其他文本

我喜欢这样做(示例XXXXX是一个大图像)

XXXXXXXX  This is a big image.
XXXXXXXX  all text should not goes 
XXXXXXXX  down the image
XXXXXXXX
Run Code Online (Sandbox Code Playgroud)

但问题是我的文字落在了图像上

XXXXXXXX  This is a big image.
XXXXXXXX  
XXXXXXXX  
XXXXXXXX
all text should not goes down the image
Run Code Online (Sandbox Code Playgroud)

请帮助我.

这是我的代码

<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 …
Run Code Online (Sandbox Code Playgroud)

html css css-float

1
推荐指数
1
解决办法
379
查看次数

标签 统计

css ×1

css-float ×1

html ×1