第1个回答 2012-08-01
像这种图文混排的样式应该用dl dt dd标签来写,没有你的html代码看不太懂你怎么写的,第四张图片不换行的原因是因为图片所在的div宽度太宽了,你试着把他的宽度减小试试,这应该是ie出现的问题吧,Firefox不会出现,另外代码写的不够规范,标签名ui li 应该用小写,属性也是小写。
第2个回答 2012-08-01
赞同一楼的观点:标签名和属性最好小写,可能问题出在ul的宽度太大和margin值偏大,你将div,ul,的border设置一下就可以清楚的看到宽度是否设置合适,然后调试,差不多就能实现效果了。
如果还不可以,就贴出你的html代码,希望能帮助到你!
第3个回答 2012-08-01
<style type="text/css">
#wl_contain-2
{
width: 700px;
float: left;
margin-top: 10px;
padding-left: 1px;
padding-right: 5px;
display: inline;
}
#wl_contain-2 UL
{
float: left;
width: 690px;
color: #fff;
margin-left: 20px;
list-style-type: none;
margin-bottom: 8px;
}
#wl_contain-2 UL LI A:visited
{
color: #3399FF;
}
#wl_contain-2 UL LI A:hover
{
color: #ff0000;
}
#wl_contain-2 UL LI
{
line-height: 26px;
padding-right: 30px;
width: 200px;
background-image: url(d3.jpg);
background-repeat: no-repeat;
background-position: 10px center;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: #D9D9D9;
float: left;
}
#wl_contain-2 UL LI img{ width:200px; height:100px; border:none;}
</style>
</head>
<body>
<div id="wl_contain-2">
<ul>
<li>
<img alt="" src="" /></li>
<li>
<img alt="" src="" /></li>
<li>
<img alt="" src="" /></li>
</ul>
<ul>
<li>
dsafa</li>
<li>
asdfaf</li>
<li>
dsfaf</li>
</ul>
<ul>
<li>
<img alt="" src="" /></li>
<li>
<img alt="" src="" /></li>
<li>
<img alt="" src="" /></li>
</ul>
<ul>
<li>
dsafaf</li>
<li>
dsfafa</li>
<li>
dsaafadf</li>
</ul>
<ul>
<li>
<img alt="" src="" /></li>
<li>
<img alt="" src="" /></li>
<li>
<img alt="" src="" /></li>
</ul>
<ul>
<li>
erwtw34</li>
<li>
dsfsge4</li>
<li>
dgewrg</li>
</ul>
</div>
</body>
是这种效果吗?本回答被网友采纳