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="菜单,制作">	<Meta name="description" content="                    概述CSS3制作卷角菜单                        下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。内存溢出小编现在分享给大家,也给大家做个参考。           ">	<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>ul,li{	List-style-type:none;	padding:0;	}.form{	wIDth:405px;	height:200px;	background:#2f2f2f;	position:relative;	overflow:hidden;	margin:30px auto;	}.corner{	background: -webkit-linear-gradIEnt(45deg,#2e2e2e 24%,#5F5F5F 40%,#6f6f6f 43%,#5F5F5F 46%,#2F2F2F 50%,#fff 50%,#fff);	background: -moz-linear-gradIEnt(45deg,#fff);height: 90px;	background: -o-linear-gradIEnt(45deg,#fff);height: 90px;	background: -ms-linear-gradIEnt(45deg,#fff);height: 90px;	background: linear-gradIEnt(45deg,#fff);height: 90px;	wIDth: 90px;	height:90px;	border-radius: 0 0 0px 90px / 0 0 0 30px;	-webkit-transform: rotate(-90deg);	-moz-transform: rotate(-90deg);  -o-transform: rotate(-90deg);  -ms-transform: rotate(-90deg);  transform: rotate(-90deg);	position: absolute;	left:-4px;	top: -4px;	Box-shadow: 5px 2px 8px black; 	overflow:hidden;	-webkit-Transition:all 0.3s linear 0s;  -moz-Transition:all 0.3s linear 0s;  -o-Transition:all 0.3s linear 0s;  -ms-Transition:all 0.3s linear 0s;  Transition:all 0.3s linear 0s;}.corner:after{	height:100%;	wIDth:100%;	position: absolute;	content: "";	top: -15px;	left: -82px;	border-radius: 90px 90px 0px 0 / 40px 40px 0 0;	z-index: 1;	background: #2F2F2F;	-webkit-transform: rotate(77deg);	-moz-transform: rotate(77deg);  -o-transform: rotate(77deg);  -ms-transform: rotate(77deg);  transform: rotate(77deg);	Box-shadow: 0px 0px 8px black inset;}.button{  float: left;	height:40px;	margin:20px 20px;	border-radius:30px;	border:1px solID #151515;	Box-shadow:0px 2px 2px rgba(0,0.6);	overflow:hidden; 	}.button li {  float: left;}  .button li a{	float:left;  display:block;  text-decoration:none;  padding: 0 20px;	height:40px;	line-height:36px;	Font-size:14px;	color:#eee;	text-align:center;	border-right:1px solID #151515;	Box-shadow:-1px 0px 0px rgba(255,255,0.1) inset,inset 0px -1px 1px rgba(200,200,0.1),inset 0px 1px 2px rgba(255,0.1);	text-shadow:0px -1px 0px #000;	background:-webkit-linear-gradIEnt(top,rgba(200,0.1) 0%,0.1) 50%,#222 50%,#222);	background:-moz-linear-gradIEnt(top,#222);  background:-o-linear-gradIEnt(top,#222);  background:-ms-linear-gradIEnt(top,#222);  background:linear-gradIEnt(top,#222);	}.button li:first-child a{	border-radius:30px 0 0 30px;	}.button li:last-child a{	border-radius:0px 30px 30px 0;  border-right: none;	}.button li a:hover{	cursor:pointer;	background:-webkit-linear-gradIEnt(top,rgba(50,50,0.4) 20%,rgba(100,100,0.3));	background:-moz-linear-gradIEnt(top,0.3));  background:-o-linear-gradIEnt(top,0.3));  background:-ms-linear-gradIEnt(top,0.3));  background:linear-gradIEnt(top,0.3));	Box-shadow:0px 2px 4px rgba(0,0.8) inset;	color:#b7def5;	text-shadow:0px 0px 8px rgba(0,162,0.8);	}.notice{	position:relative;	padding:10px 0 0 25px;  margin: 20px auto;  wIDth: 120px;	}.arrow{	wIDth:13px;	height:20px;	background:#FC9;	position:absolute;	top:0px;	left:0px;	-webkit-animation:notices linear 0.8s infinite ;	-moz-animation:notices linear 0.8s infinite ;  -o-animation:notices linear 0.8s infinite ;  -ms-animation:notices linear 0.8s infinite ;  animation:notices linear 0.8s infinite ;	}.arrow:after{	wIDth:0;	height:0;	border-wIDth:12px;	border-style:solID dashed dashed dashed;	border-color:#FC9 transparent transparent transparent;	position:absolute;	bottom:-22px;	left:-5px;	display:block;	content:"";	}@-webkit-keyframes notices{	0%{top:0px;}	50%{top:10px;}	100%{top:0px;}	}@-moz-keyframes notices{	0%{top:0px;}	50%{top:10px;}	100%{top:0px;}	}@-o-keyframes notices{	0%{top:0px;}	50%{top:10px;}	100%{top:0px;}	}@-ms-keyframes notices{	0%{top:0px;}	50%{top:10px;}	100%{top:0px;}	}  @keyframes notices{	0%{top:0px;}	50%{top:10px;}	100%{top:0px;}	}  </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/filed-corner-menu.HTML" target="_blank">查看原文>></a>	</nav></div><div >	<header ID="header">		<hgrounp >			<h1>CSS3制作卷角菜单</h1>			<h2>作者:@猫仔(如有更好建议或疑问请加群:1041263)<h2>		</hgrounp>	</header>	<section >    <div ><div ></div>拖动书角看看 *^_^*</div>    <div  ID="form">      <div  ID="corner"></div>        <ul >          <li><a href="">W3cplus</a></li>          <li><a href="">Blog</a></li>          <li ><a href="">About Us</a></li>          <li ><a href="">Contact</a></li>        </ul>      </div>		</section></div><script>(function(){	var form=document.getElementByID("form");	var corner=document.getElementByID("corner")	var ftop=form.offsettop;	var fleft=form.offsetleft;	var switchopen=0;	corner.onmousedown=function(e){		e.preventDefault();         form.style.cursor="move";		switchopen=1;		}	form.onmousemove=function(e){		if(switchopen==1){			if(e.pageX-fleft>90 ||e.pageY-ftop>90){				corner.style.wIDth=corner.style.height=90+"px";				corner.style.left=corner.style.top=-4+"px"				}			else{				corner.style.wIDth=corner.style.height=e.pageY-ftop+"px";								}		}	}	form.onmouseup=function(){		switchopen=0;                this.style.cursor="default";		}	})()</script></body></HTML>

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

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

总结

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

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

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

原文地址:https://54852.com/web/1090760.html

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

发表评论

登录后才能评论

评论列表(0条)

    保存