<html> <head> <title>网页导航</title> </head> <body> </body> </html>
<ul> <li><a href="index.html">首页</a></li> <li><a href="about.html">关于我们</a></li> <li><a href="contact.html">联系我们</a></li> </ul>
<ul> <li><a href="index.html"><img src="home.png"></a></li> <li><a href="about.html"><img src="about.png"></a></li> <li><a href="contact.html"><img src="contact.png"></a></li> </ul>
<style type="text/css"> ul { list-style-type: none; margin: 0; padding: 0; } li { float: left; } li a { display: block; padding: 8px; background-color: #ddd; text-decoration: none; } </style>
<script type="text/javascript"> window.onload = function() { var navList = document.getElementById("navList"); navList.onmouseover = function() { this.style.backgroundColor = "#ccc"; } navList.onmouseout = function() { this.style.backgroundColor = "#ddd"; } } </script>
本文链接:http://task.lmcjl.com/news/5280.html