CSS3制作立体导航

CSS3制作立体导航,第1张

概述CSS3制作立体导航

下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。

内存溢出小编现在分享给大家,也给大家做个参考。

<!DOCTYPE HTML><HTML lang="en-US"><head>	<Meta charset="UTF-8">	<Title>CSS3制作立体导航|w3cplus</Title>	<Meta name="keywords" content="CSS3学习,CSS3属性详解,CSS3 Transition,如何学好CSS3">	<Meta name="description" content="W3CPLUS是一个前端爱好者的家园,W3CPLUS努力打造最优秀的web 前端学习的站点。W3CPLUS力求原创,以一起学习,一起进步,共同分享为原则。W3CPLUS站提供了有关于CSS,CSS3,HTML,HTML5,jquery,手机移动端的技术文档、DEMO、资源,与前端爱好者一起共勉。">	<link rel="shortcut icon" href="http://www.w3cplus.com/sites/all/themes/marvin/favicon.ico">	<link rel="stylesheet" type="text/CSS" href="http://www.w3cplus.com/demo/CSS3/base.CSS" media="all" />	<link rel="stylesheet" type="text/CSS" href="CSS/style.CSS" media="all"><style type="text/CSS">				body{      background: #ebebeb;    }		.nav{      wIDth:560px;      height: 50px;      Font:bold 0/50px Arial;      text-align:center;      margin:40px auto 0;			border-radius: 8px;		}		.nav a{display: inline-block;			-webkit-Transition: all 0.2s ease-in;			-moz-Transition: all 0.2s ease-in;      -o-Transition: all 0.2s ease-in;      -ms-Transition: all 0.2s ease-in;      Transition: all 0.2s ease-in;		}		.nav a:hover{			-webkit-transform:rotate(10deg);			-moz-transform:rotate(10deg);      -o-transform:rotate(10deg);      -ms-transform:rotate(10deg);      transform:rotate(10deg);		}		.black{      background: #2c2c2c;      Box-shadow: 0 7px 0 #0b0b0b;     }		.red{      background: #f65f57;      Box-shadow: 0 7px 0 #ba4a45;     }		.blue{      background: #36b7e5;      Box-shadow: 0 7px 0 #3595b8;    }		.green{      background: #9cd564;      Box-shadow: 0 7px 0 #86b65b;    }		.nav li{      position:relative;      display:inline-block;      padding:0 16px;      Font-size: 13px;			text-shadow:1px 2px 4px rgba(0,.5);      List-style: none outsIDe none;		}    		.nav li::before,.nav li::after{      content:"";      position:absolute;      top:14px;      height: 25px;      wIDth: 1px;     }		.nav li::after{      right: 0;			background: -moz-linear-gradIEnt(top,rgba(255,255,0),.2) 50%,0));			background: -webkit-linear-gradIEnt(top,0));			background: -o-linear-gradIEnt(top,0));      background: -ms-linear-gradIEnt(top,0));      background: linear-gradIEnt(top,0));		}		.black li::before{      left: 0;			background: -moz-linear-gradIEnt(top,#2c2c2c,#000 50%,#2c2c2c);			background: -webkit-linear-gradIEnt(top,#2c2c2c);			background: -o-linear-gradIEnt(top,#2c2c2c);      background: -ms-linear-gradIEnt(top,#2c2c2c);      background: linear-gradIEnt(top,#2c2c2c);		}		.red li::before{      left: 0;			background: -moz-linear-gradIEnt(top,#ff625a,#9e3e3a 50%,#ff625a);			background: -webkit-linear-gradIEnt(top,#ff625a);			background: -o-linear-gradIEnt(top,#ff625a);      background: -ms-linear-gradIEnt(top,#ff625a);      background: linear-gradIEnt(top,#ff625a);		}		.blue li::before{      left: 0;			background: -moz-linear-gradIEnt(top,#34b0dc,#237a99 50%,#34b0dc);			background: -webkit-linear-gradIEnt(top,#34b0dc);			background: -o-linear-gradIEnt(top,#34b0dc);      background: -ms-linear-gradIEnt(top,#34b0dc);      background: linear-gradIEnt(top,#34b0dc);		}		.green li::before{      left: 0;			background: -moz-linear-gradIEnt(top,#9cd564,#7aa450 50%,#9cd564);			background: -webkit-linear-gradIEnt(top,#9cd564);			background: -o-linear-gradIEnt(top,#9cd564);      background: -ms-linear-gradIEnt(top,#9cd564);      background: linear-gradIEnt(top,#9cd564);		}		.nav li:first-child::before{      background: none;    }		.nav li:last-child::after{      background: none;    }		.nav a,.nav a:hover{      color:#fff;      text-decoration: none;     }	</style>  </head><body><div >	<nav ID="top_nav">		<ul >			<li><a href="http://www.w3cplus.com" target="_blank">w3cplus</a></li>			<li><a href="http://www.w3cplus.com/resources/CSS3-tutorial-and-case" target="_blank">CSS3详解教程</a></li>			<li><a href="http://www.w3cplus.com/demos/List.HTML" target="_blank">CSS3实例</a></li>			<li><a href="http://www.w3cplus.com/demo/Tags/242.HTML" target="_blank">藤藤每日一练</a></li>		</ul>		<a ID="read" href="http://www.w3cplus.com/demo/CSS3-create-3d-nav-menu.HTML" target="_blank">查看原文>></a>	</nav></div><div >	<header ID="header">		<hgrounp >			<h1>CSS3制作立体导航</h1>			<h2>作者:<a href="http://weibo.com/wwhong88" target="_blank">不点</a>(如有更好建议或疑问请加群:1041263)<h2>		</hgrounp>	</header>	<section >		<ul >      <li><a href="">Home</a></li>      <li><a href="">About Me</a></li>      <li><a href="">Portfolio</a></li>      <li><a href="">Blog</a></li>      <li><a href="">Resources</a></li>      <li><a href="">Contact Me</a></li>    </ul>    <ul >      <li><a href="">Home</a></li>      <li><a href="">About Me</a></li>      <li><a href="">Portfolio</a></li>      <li><a href="">Blog</a></li>      <li><a href="">Resources</a></li>      <li><a href="">Contact Me</a></li>    </ul>    <ul >      <li><a href="">Home</a></li>      <li><a href="">About Me</a></li>      <li><a href="">Portfolio</a></li>      <li><a href="">Blog</a></li>      <li><a href="">Resources</a></li>      <li><a href="">Contact Me</a></li>    </ul>    <ul >      <li><a href="">Home</a></li>      <li><a href="">About Me</a></li>      <li><a href="">Portfolio</a></li>      <li><a href="">Blog</a></li>      <li><a href="">Resources</a></li>      <li><a href="">Contact Me</a></li>    </ul>	</section></div></body></HTML>

以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

总结

以上是内存溢出为你收集整理的CSS3制作立体导航全部内容,希望文章能够帮你解决CSS3制作立体导航所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1097111.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存