萬盛學電腦網

 萬盛學電腦網 >> 網頁制作 >> DivCSS教程 >> 酷酷的變色菜單

酷酷的變色菜單

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> XHTML 1.0 Shell - Strict Specification </title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<style type='text/css'>
                        ul {
                                margin: 0;
                                padding: 0;
                                background-color: #eee;
                                width: 100px;
                                list-style: none;
                                font: 13px/130% Verdana,Arial,Helvetica,Sans-Serif;
                                position:relative;
                        }
                        li {padding-right:5px}

                        ul li a {
                                display: block;
                                background-color: #eee;
                                text-indent: 5px;
                                height: 20px;
                                line-height: 20px;
                                color: #000;
                                text-decoration: none;
                        }

                        ul li a:hover {
                                background-color: #ddd;
                        }
               
                span {
                        visibility:hidden;
                        position:absolute;
                        width:5px;
                        height:120px;
                        right:0;       
                        top:0
                        }
                        span.a {background:red;}
                        span.b {background:green;}
                        span.c {background:blue;}
                        span.d {background:yellow;}
                        span.e {background:pink;}
                        span.f {background:orange;}

                        ul li a:hover span {visibility:visible}

               
                </style>
</head>
<body>
<ul>
  <li><a href='HTTP://3LIAN.COM'>3LIAN.COM<span class="a"></span></a></li>
  <li><a href='#'>3LIAN.COM<span class="b"></span></a></li>
  <li><a href='#'>3LIAN.COM<span class="c"></span></a></li>
&nb

copyright © 萬盛學電腦網 all rights reserved