【发布时间】:2011-12-21 17:23:09
【问题描述】:
我正在完成我的网站http://centrosokoladine.lt/ 你怎么能看到在中间的左边有一些被文字覆盖的图片,我需要把那个文字换行。图像设置为那些框的背景图像,没有重复左中...
这里是 html 的确切部分:
<div class="turinio"><?php the_content(); ?></div>
还有css:
.vidinis
{
background-color:#a68e84;
layer-background-color:#a68e84;
width: 709px;
/* height: 306px; */
align: center;
padding-top: 17px;
visibility: visible;
**background-image: url('http://centrosokoladine.lt/wp-content/themes/sokoladine/grafika/info.gif');
background-repeat: no-repeat;
word-wrap: break-word;
background-position: bottom left;**
overflow:hidden;
}
我知道在背景图像周围环绕文本是不可能的,所以我在这里寻找其他解决方案,也许我已经尝试为该图像创建单独的 div,但我失败了..
【问题讨论】:
-
提示:浮动
div就是为此而发明的。 (文字将环绕它们。)