<ul class="nav">
<li><a href="">首页</a></li>
<li><a href="">关于我们</a></li>
<li><a href="">展示</a></li>
<li><a href="">管理</a></li>
<li><a href="">文化</a></li>
<li><a href="">联系我们</a></li>
</ul>
  <style>
body{
background: #ebebeb;
}
.nav{
width:450px;
height: 50px;
font:bold 0/50px Arial;
margin:40px auto 0;
background: #3fbeff;
border-radius:5px;
box-shadow:0 4px #04a7fa; /*阴影*/
} .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; /*持续时间0.2s,延迟时间0.5s,渐显效果ease-in*/
}
.nav a:hover{
-webkit-transform:rotate(10deg);
-moz-transform:rotate(10deg);
-o-transform:rotate(10deg);
-ms-transform:rotate(10deg);
transform:rotate(10deg); /*鼠标移上去后,顺时针旋转10度*/
} .nav li{
position:relative;
display:inline-block;
padding:0 16px;
font-size: 12px;
text-shadow:1px 2px 4px rgba(0,0,0,.5); /*文本阴影,0.5的透明*/
list-style: none outside none;
} .nav li{
background:linear-gradient(to bottom,#04a7fa,#0599e4,#0488cb) no-repeat right / 1px 15px;
} /*右边的一条小线*/ .nav li:last-child{background:none;} /*删除伪元素的最后一个分割线*/ .nav a,
.nav a:hover{
color:#fff;
text-decoration: none;
}
</style>

效果图:

最新文章

  1. Python高手之路【二】python基本数据类型
  2. ASP.NET五步打包下载Zip文件
  3. UVa 107 - The Cat in the Hat (找规律,注意精度)
  4. Uva120 Stacks of Flapjacks 翻煎饼
  5. WindowListener中的windowClosed方法不执行的问题。
  6. CodeForces 383D Antimatter
  7. Problem - D - Codeforces Fix a Tree
  8. elasticsearch-5.x JAVA API(001)
  9. java网络编程(7)——利用tcp实现文件上传
  10. 抽象工厂模式--java代码实现
  11. springBoot整合jpa
  12. Lambda根据属性名字选择或筛选
  13. Visual Studio VS使用freopen调试控制台闪退
  14. tcp粘包解决
  15. gentoo samba 密码错误
  16. PRM路径规划算法
  17. sql查询层级分类
  18. BootStrap的动态模态框及静态模态框
  19. Str 函数
  20. [1-3] 把时间当做朋友(李笑来)Chapter 3 【提高心智,和时间做朋友】 摘录

热门文章

  1. C# 制作透明窗体
  2. Burn the Linked Camp(bellman 差分约束系统)
  3. solr4.x配置IK2012FF智能分词+同义词配置
  4. Android中Handler作用
  5. iOS中通知中心NSNotificationCenter应用总结
  6. MVC4 Forms 验证,部署到Hyper-v上.FormsAuthentication.SetAuthCookie无效的问题
  7. 转: React系统的入门系统
  8. python连接字符串的方式
  9. OpenShare文档中心
  10. Android-多平台分享(新浪微博)