HTML DIV+CSS制作通栏实例
建站知识 2021-07-03 08:43www.168986.cn长沙网站建设
HTML DIV+CSS制作通栏
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://.w3./TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
{
margin:0;
padding:0;
}
ul{
list-style:none;
}
img{
border:none;
}
a{
text-decoration:none;
color:#fff;
}
a:hover{
text-decoration:none;
}
/layout/
#header{
width:100%;
margin:0 auto;
background:#eee;
}
#menu_bg{
width:100%;
background:pink;
height:50px;
}
#menu{
width:980px;
margin:0 auto;
}
#menu ul li{
width:101px;
float:left;
}
#menu ul li a{
float:left;
display: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="logo">this is logo</div>
<div id="menu_bg">
<div id="menu">
<ul>
<li class="current selected"><a href="###">home</a></li>
<li><a href="#">about us</a></li>
<li><a href="#">contact us</a></li>
<li><a href="#">price</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>
复制代码
代码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://.w3./TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
{
margin:0;
padding:0;
}
ul{
list-style:none;
}
img{
border:none;
}
a{
text-decoration:none;
color:#fff;
}
a:hover{
text-decoration:none;
}
/layout/
#header{
width:100%;
margin:0 auto;
background:#eee;
}
#menu_bg{
width:100%;
background:pink;
height:50px;
}
#menu{
width:980px;
margin:0 auto;
}
#menu ul li{
width:101px;
float:left;
}
#menu ul li a{
float:left;
display: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="logo">this is logo</div>
<div id="menu_bg">
<div id="menu">
<ul>
<li class="current selected"><a href="###">home</a></li>
<li><a href="#">about us</a></li>
<li><a href="#">contact us</a></li>
<li><a href="#">price</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>
长沙网站设计
- 如何进行东阳SEO关键词优化?
- 边坝哪有关键词排名优化:提升你的网站流量与
- 安国百度优化服务:提升您的在线可见性
- 阜康新手做SEO怎么做
- 山西seo网站排名关键词优化:提升您网站曝光率
- 临沂seo网站排名关键词优化:提高你的网站可见
- 广西SEO网站推广怎样付费比较合理
- 双辽SEO网站推广:提升你的网站可见性与流量
- 辽宁企业网站优化购买方式有哪些
- 提升宝清百度SEO排名的实用技巧与策略
- 静宁百度SEO排名:提升您网站曝光率的关键策略
- 彭州百度SEO排名的提升策略和实施指南
- 广南百度关键词SEO:提升网站排名的关键策略
- 辽宁关键词优化怎么做论坛营销
- 吉林百度seo排名如何做到让用户满意
- 内黄百度优化服务:提升在线可见性的关键