css+div

时间:2021-10-14 07:02:00
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> 学员感悟 </title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<style type="text/css">
body,img,p,a,ul,li{margin:0px;padding:0px;} .clear{clear:both;} ul,li{
list-style:none;
font-size:90%;
} p{font-size:90%;} a:link,a:visited{
color:#484848;
text-decoration:none;
} a:hover{
color:#F00;
text-decoration:none;
} .xueyuan{
width:630px;
margin:50px auto;
padding:10px;
} .title{
background-image:url(image/bg01.gif);
height:34px;
padding-left:40px;
line-height:34px;
} .span1{
color:blue;
font-weight:bold;
} .span2{
color:gray;
font-size:50%;
float:right;
} .content{
width:310px;
line-height:150%;
padding-top:10px;
} .floatL{float:left;} .floatR{float:right;} img{
float:left;
} p{
float:right;
width:190px;
text-indent:20px;
line-height:150%;
background:url(image/li06.gif) no-repeat left 5px;
} ul{
background:url(image/li07.gif) no-repeat left 12px;
padding-left:20px;
} li{
height:30px;
line-height:30px;
} .red{
color:red;
font-weight:bold;
} .span3{
color:red;
font-weight:bold;
}
</style>
</head> <body>
<!--整体-->
<div class="xueyuan">
<!--标题-->
<div class="title">
<span class="span1">学员</span>感悟
<span class="span2"><a href="#">+MORE</a></span>
</div>
<!--内容1-->
<div class="content floatL">
<img src="data:image/img08.jpg" /> <p><a href="#">[php学员]钟玲玉:传智,我人生中重要的一站</a></p>
<div class="clear"></div> <ul>
<li><span class="red">[php学员]</span><a href="#">李久杨:90后,月薪10k,一封迟..</a></li>
<li><span class="red">[php学员]</span><a href="#">杜宏海:同学到其他机构学完..</a></li>
<li><span class="red">[php学员]</span><a href="#">杨*斌:一个小学生的奋斗史..</a></li>
<li><span class="red">[php学员]</span><a href="#">黄超:传智播客,让我月薪增长到..</a></li>
<li><span class="red">[php学员]</span><a href="#">刘传华:传智,我人生中的转折点..</a></li>
</ul>
</div>
<!--内容2-->
<div class="content floatR">
<img src="data:image/img09.jpg" />
<p><a href="#">[php学员]王艳:美女网编,毕业薪水6500</a></p>
<div class="clear"></div>
<ul>
<li><span class="red">[php学员]</span><a href="#">吴思阳:传智之旅-真正的升华..</a></li>
<li><span class="red">[php学员]</span><a href="#">郝建设:短暂时光的改变..</a></li>
<li><span class="red">[php学员]</span><a href="#">宋娇:幸好,我选择了传智..</a></li>
<li><span class="red">[php学员]</span><a href="#">李玉宝:零基础学员,刚毕业就拿..</a></li>
<li><span class="red">>>查看更多学员感言</span></li>
</ul>
</div>
<div class="clear"></div>
</div>
</body>
</html>

效果图:css+div