小二来一只葫芦

默默提升

鼠标经过样式-常用

前后翻转:

<style type="text/css">
 *{margin:0px;padding:0px;}
 #nav{width:280px;height:500px;margin:50px;perspective:400px;float:left;}
 #nav p{height:40px;width:200px;font-size:18px;font-family:"微软雅黑";text-align:center;line-height:40px;}
 #nav ul li{width:200px;height:40px;list-style:none;position:relative;transform-style:preserve-3d;transition:0.5s;
  display:block;margin:1px;cursor:pointer;}
 #nav ul li:hover{transform:translateZ(30px) rotateX(360deg) scale(1.1);}
 #nav ul li div:nth-child(1){height:40px;width:200px;background:#f96;}
 #nav ul li div p{font-size:16px;font-family:"微软雅黑";text-align:center;line-height:40px;}

</style>


<div id="nav">
<ul>
<li>
<div><p>Home</p></div></li>
<li>
<div><p>javascript</p></div></li>
<li>
<div><p>div+css</p></div></li>
<li>
<div><p>Tel</p></div></li>
<li>
<div><p>Abouet</p></div></li>
</ul>
<p>前后翻转</p>

</div>


上浮:

<style type="text/css">
 *{margin:0px;padding:0px;}
 #nav{width:280px;height:500px;margin:50px;perspective:400px;float:left;}
 #nav p{height:40px;width:200px;font-size:18px;font-family:"微软雅黑";text-align:center;line-height:40px;}
 #nav ul li{width:200px;height:40px;list-style:none;position:relative;transform-style:preserve-3d;transition:0.5s;display:block;margin:1px;cursor:pointer;}
 #nav ul li div:nth-child(1){height:40px;width:200px;background:#f96;}
 #nav ul li div p{font-size:16px;font-family:"微软雅黑";text-align:center;line-height:40px;}
 #nav ul li:hover{transform:translateZ(30px) scale(1.1);}
</style>


<div id="nav">
<ul>
<li>
<div><p>Home</p></div></li>

<li>
<div><p>javascript</p></div></li>
<li>

<div><p>div+css</p></div></li>
<li>
<div><p>Tel</p></div></li>
<li>
<div><p>Abouet</p></div></li>
</ul>
<p>上浮</p>
</div>


左右翻转:

<style type="text/css">
 *{margin:0px;padding:0px;}
 #nav{width:280px;height:500px;margin:50px;perspective:400px;float:left;}
 #nav p{height:40px;width:200px;font-size:18px;font-family:"微软雅黑";text-align:center;line-height:40px;}
 #nav ul li{width:200px;height:40px;list-style:none;position:relative;transform-style:preserve-3d;transition:0.5s;display:block;margin:1px;cursor:pointer;}
 #nav ul li div:nth-child(1){height:40px;width:200px;background:#f96;}
 #nav ul li div p{font-size:16px;font-family:"微软雅黑";text-align:center;line-height:40px;}
 #nav ul li:hover{transform:rotateY(360deg) scale(1.1);}
</style>


<div id="nav">
<ul>
<li>
<div><p>Home</p></div></li>
<li>
<div><p>javascript</p></div></li>
<li>
<div><p>div+css</p></div></li>
<li>
<div><p>Tel</p></div></li>
<li>
<div><p>Abouet</p></div></li>
</ul>
<p>左右翻转</p>
</div>


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenXiaosCode/article/details/52368403
文章标签: 鼠标经过导航样式
想对作者说点什么? 我来说一句

鼠标经过样式js实现

2015年04月20日 9KB 下载

WPF Button 样式 鼠标移入发光

loryrichie loryrichie

2014-06-04 13:10:54

阅读数:2846

WPF Button 鼠标移动改变样式

kllxyu kllxyu

2015-08-06 12:31:45

阅读数:1912

没有更多推荐了,返回首页

不良信息举报

鼠标经过样式-常用

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭