首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

文字环绕图片解决方法

2012-06-15 
文字环绕图片(中转站。。http://www.w3cfuns.com/thread-5593453-1-1.html 这里实在不知道咋样发表图片。。汗

文字环绕图片
(中转站。。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_ji">Grey options</div>
<div class="dao_ji">Yellowoptions</div>


<div class="dao_ji">Blue options</div>
<div class="dao_ji">Green options</div>
<div class="dao_ji">Red options</div>
</div>
<div class="main">
<div class="left_main"></div>
<div class="zhong_main">
<div class="z_main">
<div class="fu_main">Who can use this template</div>
<div class="pic1"><img src="avatar.php.jpg"></div>
<div>
GoFlexible-Two contains sufficient formats available for texts. You can choose between "heading",
"subheading" and normal paragraphs. See under "Other Pages" for examples.
</div>
</div>
<div class="h_main">
<div class="fu_main">The Colors</div>
<div class="pic1"><img src="avatar.php.jpg" ></div>
<div>
GoFlexible-Two contains sufficient formats available for texts. You can choose between "heading",
"subheading" and normal paragraphs. See under "Other Pages" for examples.
</div>
</div>
</div>
<div class="in_main">
<div class="z_main">
<div class="fu_main">The Layout</div>
<div class="pic1"><img src="avatar.php.jpg" ></div>
<div>
GoFlexible-Two contains sufficient formats available for texts. You can choose between "heading",
"subheading" and normal paragraphs. See under "Other Pages" for examples.
</div>
</div>
<div class="h_main">
<div class="fu_main">The Text</div>
<div class="pic1"><img src="avatar.php.jpg"></div>
<div>
GoFlexible-Two contains sufficient formats available for texts. You can choose between "heading",
"subheading" and normal paragraphs. See under "Other Pages" for examples.
</div>
</div>
</div>
<div class="right_main">
<div class="r_main">
<div class="fun_main"></div>
</div>
<div class="i_main">
<div class="fun_main"></div>
</div>
<div class="g_main">
<div class="fun_main"></div>
</div>
</div>
</div>
<div class="foot">
<div class="foot_a">
Copyright &copy;2006 Your Company | All rights reserved<br>
Design by <a href="#">Gerhard Studios</a> | <a href="#">W3C XHTML 1.1</a> | <a href="#"> W3C CSS 2.0</a>
</div>
</div>
</div>
</body>
</html>

热点排行