好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

HTML DIV+CSS制作通栏实例

HT ML DIV+CSS 制作 通栏

复制代码

代码如下:


<!DOCTY PE html P ub LIC "-//W3C//DTD HTML 4.01 Trans IT ional//EN" "http://www.w3. org /TR/html4/loose.dtd">
<html>
<head>
< ;m eta http-equiv="Content -t ype" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{
m arg in:0;
padding:0;
}
ul{
list -s tyle:none;
}
img {
border:none;
}
a{
text-decoration:none;
color: # fff;
}
a:hover{
text-decoration:none;
}
/*layout*/
#header{
width:100%;
mar gin :0 auto;
background:#eee;
}
#menu_bg{
width:100%;
background:pink;
h ei ght:50px;
}
#menu{
width:980px;
margin:0 auto;
}
#menu ul li{
width:101px;
float:left;
}
#menu ul li a{
float:left;
dis play :block;
width:100px;
height:48x;
line-height:48px;
text-align: center ;
text-transform:uppercase;
background:black;
border-bottom:2px solid black;
}
#menu ul li a:hover{
border-bottom:2px solid pink;
}
#wrap{
width:980px;
height:500px;
margin:0 auto;
background:green;
}
#footer_bg{
width:100%;
background:pink;
height:50px;
}
#footer{
width:980px;
margin:0 auto;
}
.friend_links li{
display:inline;
}
</style>
</head>
<body>
<div id="header">
<div id=" LOG o">this is logo</div>
<div id="menu_bg">
<div id="menu">
<ul>
<li class=" current selected"><a hr ef="###">home</a></li>
<li><a href="#">about us</a></li>
<li><a href="#">contact us</a></li>
<li><a href="#"> PR ice</a></li>
</ul>
</div>
</div>
</div>
<div id="wrap">
wrap
</div>
<div id="footer_bg">
<div id="footer">
<p class="copyright">©XXXXXXX 科技 有限责任 公司 </p>
<ul class="friend_links">
<li> 百度 </li>
<li> 谷歌 </li>
<li>有道</li>
<li>腾讯</li>
</ul>
</div>
</div>
</body>
</html>

总结

以上是 为你收集整理的 HTML DIV+CSS制作通栏实例 全部内容,希望文章能够帮你解决 HTML DIV+CSS制作通栏实例 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于HTML DIV+CSS制作通栏实例的详细内容...

  阅读:17次