日期:2014-05-17  浏览次数:20843 次

文字环绕图片
(中转站。。http://www.w3cfuns.com/thread-5593453-1-1.html 这里实在不知道咋样发表图片。。汗颜!)
希望帮忙下。。。

------解决方案--------------------
首先发现了几个问题
1、你上面图片的li木有结束标记。



问题已经解决 请楼主结扎

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body{
background-color:#CCCCCC;
margin:0px;
}
.out{
width:780px;
height:794px;
margin:auto;
border:solid;
border-bottom-style:none;
border-top-style:none;
border-color:#646464;
background-color:#FF0000;
}
/*-------------------------------------------*/
.head{
width:780px;
height:114px;
background-image:url(img/header.jpg);
}
.head_a{width:110px;float:right;height:25px;line-height:25px;}
.head_a ul{width:100px; float:right;margin:0;}
.head_a ul li{list-style:none;display:inline;}
/*--------------------head--------------*/
.daohan{background-image:url(avatar.php.jpg);
width:780px;
height:25px;}
.dao_ji{width:111px;
height:25px;
background-color:#CCCCCC;
float:left;}
/*----------------------导航-----------------------*/
.main{
width:780px;
height:595px;
background-color:#FFCCFF;
}
.left_main{
width:160px;
height:580px;
margin-top:20px;
}
.zhong_main{
width:200px;
height:580px;
margin-top:-580px;
margin-left:180px;
background-color:#0066CC;
}
.in_main{
width:200px;
height:580px;
margin-top:-580px;
margin-left:400px;
background-color:#339900;
}
.right_main{
width:150px;
height:580px;
margin-top:-580px;
margin-left:620px;
background-color:#996666;
}
/*------------------------------------------*/
.foot{
width:780px;
height:40px;
background-color:#CC6600;
}
/*----------------------------------------*/
.z_main{
width:200px;
height:275px;
background-color:#99FFFF;
}
.h_main{
width:200px;
height:275px;
margin-top:30px;
background-color:#CCCCCC;
}
/*--------------------------------*/
.r_main{
width:150px;
height:150px;
background-color:#00FF99;
}
.i_main{
width:150px;
height:230px;
margin-top:10px;
background-color:#FF3333;
}
.g_main{
width:150px;
height:100px;
margin-top:10px;
background-color:#CC9900;
}
/*----------------------------*/
.fu_main{
height:30px;
line-height:30px;
border-bottom-style:solid;
background-color:#FFCC33;
}
.fun_main{
height:30px;
background-color:#3300CC;
}
/*------------------------------*/
img.pic1{
float:left;
margin-right:10px;
}
.foot_a{text-align:center;}
</style>
<body>
<div class="out">
<div class="head">
<div class="head_a">
<ul>
<li><img src="avatar.php.jpg"></li>
<li><img src="avatar.php.jpg"></li>
<li><img src="avatar.php.jpg"></li>
</ul>
</div>
</div>
<div class="daohan">
<div class="dao_ji">Entry Page</div>
<div class="dao_ji">Other Pages</div>
<div class="dao_