介绍符合WEB标准的导航菜单 ——将下面的代码拷贝粘贴并生成html或者htm格式的网页文档,用浏览器打开即可看到效果。
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>css菜单演示</title>
<style type="text/css">
<!--
*{margin:0;padding:0;border:0;}
body {
font-family: arial, 宋体, serif;
font-size:12px;
}
#nav {
line-height: 24px; list-style-type: none; background:#666;
}
#nav a {
display: block; width: 80px; text-align:center;
}
#nav a:link {
color:#666; text-decoration:none;
}
#nav a:visited {
color:#666;text-decoration:none;
}
伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-04/1209349946.html
#nav a:hover {
符合WEB标准的导航菜单
'http://www.etoow.com/html/2008-04/1209349946.html