@charset "utf-8";
/* CSS Document */
*{
margin:0;
paddding:0;
font-size:12px;
}
body{
background-color:#F5F5F5;}
.top{
width:100%;
height:27px;
background:url(file:///D|/xampp/htdocs/ajaxdemo/top_bg.jpg) repeat-x;}
.top_content{
width:1000px;
margin:0 auto;
}
.top_content li{
list-style-image:url(file:///D|/xampp/htdocs/ajaxdemo/li_bg.gif);
float:right;
width:70px;
line-height:27px;
}
.top_content a:link,.top_content a:visited{
color:#333;
text-decoration:none;}
.top_content a:hover,.top_content a:active{
color:#00F;
text-decoration:none;}
.wrap{
width:1000px;
margin:0 auto;
}
.logo_left{
width:200px;
float:left;
}
.logo{
height:80px;
background-color:#FFF;
}
.logo_right{
width:300px;
float:right;
height:28px;
margin:30px;
color:#8E8E8E;}
.logo_right img{
vertical-align:middle;
margin-right:10px;
}
.tel{
font-family:"Times New Roman", Times, serif
font-size:16px;
color:#F00;
}
.nav{
height:40px;
}
.nav_left{
width:10px;
background:url(file:///D|/xampp/htdocs/ajaxdemo/nav_left.jpg) no-repeat;
/*<!--background-image:url(file:///D|/xampp/htdocs/ajaxdemo/nav_left.jpg);
background-repeat:no-repeat;-->*/
float:left;
height:40px;
margin:0 auto;
padding:0 auto;
margin-top:8px;
}
.nav_mid{
width:980px;
background:url(file:///D|/xampp/htdocs/ajaxdemo/nav_bg.jpg) repeat-x;
float:left;}
.nav_right{
width:10px;
background:url(file:///D|/xampp/htdocs/ajaxdemo/nav_right.jpg) no-repeat;
float:left;
height:40px;}
.nav_mid_left,.nav_mid_right{
float:left;
}
.nav_mid_left{
width:680px;
}
.nav_mid_right{
width:300px;
}
.nav_mid_left li{
float:left;
list-style-type:none;
width:100px;
text-align:center;
line-height:40px;}
.nav_mid_left a:link,.nav_mid_left a:visited
{
text-decoration:none;
color:#C36;
font-size:16px;
font-family:Georgia, "Times New Roman", Times, serif;
}
.nav_mid_left a:hover,.nav_mid_left a:active
{
text-decoration:none;
color:#00F;
font-size:16px;
font-family:Georgia, "Times New Roman", Times, serif;}
.search_text{
width:190px;
height:25px;
margin-top:5px;
background:url(file:///D|/xampp/htdocs/ajaxdemo/search.jpg) no-repeat right center;
background-color:#FFF;
padding-right:25px;
border:1px solid #FFF;}
.ad {
height: 320px;
margin-top: 5px;
overflow: hidden;
clear:both;}
<!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" />
<title>我的网站实例</title>
<link href="CSS/main.css" rel="stylesheet" type="text/css" />
<script src="JS/setHomeSetFav.js" type="text/javascript" charset="gb2312" ></script>
<script src="JS/myfocus-2.0.1.min.js" type="text/javascript"></script>
<script src="JS/mf-pattern/mF_51xflash.js" type="text/javascript"></script>
<link href="JS/mf-pattern/mF_51xflash.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
myFocus.set({id:'picBox'})
</script>
</head>
<body>
<div class="top">
<div class="top_content">
<ul>
<li><a href="#" >联系我们</a></li>
<li><a href="#" onclick="AddFavorite(window.location,document.title)">加入收藏</a></</li>
<li><a href="#" onclick="SetHome(window.location)">设为首页</a></li>
</ul>
</div>
</div> <!--//top结束-->
<div class="wrap">
<div class="logo">
<div class="logo_left">
<img src="image/logo.jpg" alt="慕课网" />
</div>
<div class="logo_right">
<img src="image/tel.jpg" alt="服务在线" />24小时服务热线:<span class="tel">123-456-7890</span>
</div>
</div><!--logo结束-->
<div class="nav">
<div class="nav_left"></div> <!--nav_left结束-->
<div class="nav_mid">
<div class="nav_mid_left">
<ul>
<li><a href="#">首页</a></li>
<li><a href="list.html">关于慕课</a></li>
<li><a href="list.html">新闻动态</a></li>
<li><a href="list.html">课程中心</a></li>
<li><a href="list.html">在线课程</a></li>
<li><a href="list.html">人才招聘</a></li>
</ul>
</div> <!--nav_mid_left结束-->
<div class="nav_mid_right">
<form action="#" method="post">
<input class="search_text type="text" />
</form>
</div> <!--nav_mid_right-->
</div>
<div class="nav_right"></div> <!--nav_right结束-->
</div>
<div class="ad" id="picBox">
<div class="loading">
<img src="image/loading.gif" />
</div>
<ul>
<div class="pic">
<li><img src="image/ad2.jpg"/></li>
<li><img src="image/ad3.jpg"/></li>
<li><img src="image/ad4.jpg"/></li>
</div>
</ul>
</div>
</div>
</body>
</html>