码迷,mamicode.com
首页 > Web开发 > 详细

CSS简单导航栏

时间:2015-08-26 19:34:14      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

<!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>
<style>
div {
    width:600px;
    margin-top:30px; margin-left:auto; margin-right:auto;
    
    border-style: dashed;
    border-top-width: thin;
    border-right-width: thin;
    border-bottom-width: thin;
    border-left-width: thin;
    height:30px;
  }
 ul
{
list-style-type:none;
margin:0;
padding:0;
}
li
{
float:right; margin:0 20px;
}
a
{
display:block;

color:#003366; font-family:Verdana, Geneva, sans-serif;
font-size:10pt; text-decoration:underline;
}
a:visited{color:#d53d45;}
a:active{color:#d53d00; font-weight:bold;}
a:hover{color:#d53d45; text-decoration:none;}


  </style>
</head>

<body>
<div>
<ul>
<li><a href="default.asp">Home</a></li>
<li><a href="news.asp">News</a></li>
<li><a href="contact.asp">Contact</a></li>
<li><a href="about.asp">About</a></li>
</ul>
</div>
<iframe src="http://qq.com" width="100%" height="800px"  frameborder="0"/>
</body>
</html>

 

CSS简单导航栏

标签:

原文地址:http://www.cnblogs.com/tiger4066/p/4761096.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!