zoukankan      html  css  js  c++  java
  • 来自Individuality纯CSS打造的笔记本样式的菜单导航

    代码简介:来自Individuality纯CSS打造的笔记本样式的菜单导航,还记得初中时记笔记的笔记本样式吗

    代码内容:

    <!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>
    <title>来自Individuality纯CSS打造的笔记本样式的菜单导航_网页代码站(www.webdm.cn)</title>
    <style type="text/css">
      #menu {
    	list-style: none;
    	padding: 0;
    	margin: 0;
    	 774px;
    	height: 210px;
    	background: url(http://www.webdm.cn/images/20100918/menu-bg.jpg) no-repeat;
    	position: relative;
    }
    #menu span {
    	display: none;
    	position: absolute;
    }
    #menu a {
    	display: block;
    	text-indent: -900%;
    	position: absolute;
    	outline: none;
    }
    #menu a:hover {
    	background-position: left bottom;
    }
    #menu a:hover span{
    	display: block;
    }
    #menu .home {
    	 144px;
    	height: 58px;
    	background: url(http://www.webdm.cn/images/20100918/home.gif) no-repeat;
    	left: 96px;
    	top: 73px;
    }
    #menu .home span {
    	 86px;
    	height: 14px;
    	background: url(http://www.webdm.cn/images/20100918/home-over.gif) no-repeat;
    	left: 28px;
    	top: -20px;
    }
    #menu .about {
    	 131px;
    	height: 51px;
    	background: url(http://www.webdm.cn/images/20100918/about.gif) no-repeat;
    	left: 338px;
    	top: 97px;
    }
    #menu .about span {
    	 40px;
    	height: 12px;
    	background: url(http://www.webdm.cn/images/20100918/about-over.gif) no-repeat;
    	left: 44px;
    	top: 54px;
    }
    #menu .rss {
    	 112px;
    	height: 47px;
    	background: url(http://www.webdm.cn/images/20100918/rss.gif) no-repeat;
    	left: 588px;
    	top: 94px;
    }
    #menu .rss span {
    	 92px;
    	height: 20px;
    	background: url(http://www.webdm.cn/images/20100918/rss-over.gif) no-repeat;
    	left: 26px;
    	top: -20px;
    }
      
    </style>
    </head>
    
    <body>
    <ul id="menu">
    	<li><a href="#" class="home">Home<span></span></a></li>
    	<li><a href="#" class="about">About<span></span></a></li>
    	<li><a href="#" class="rss">RSS<span></span></a></li>
    </ul>
    <p></p>
    </body>
    </html>
    <br>
    <p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!</p>
    

    代码来自:http://www.webdm.cn/webcode/589319f6-1145-40f9-8331-91ee8c4f527c.html

  • 相关阅读:
    【网络】IP子网划分详解
    【java】package
    【java】异常
    【java】内部类
    【java】多态
    【java】抽象类和接口区别
    【java】接口
    Java并发编程之volatile关键字解析
    String ,StringBuffer, StringBuilder的区别
    Synchronized关键字、Lock,并解释它们之间的区别
  • 原文地址:https://www.cnblogs.com/webdm/p/2084986.html
Copyright © 2011-2022 走看看