zoukankan      html  css  js  c++  java
  • 导航栏特效 仅供自己学习使用

      <!DOCTYPE html>
      <html>
      <head>
      <meta charset="UTF-8">
      <title></title>
      <style>
       
      * {
      margin: 0;
      padding: 0;
      }
       
      body {
      background-color: moccasin;
      }
       
      .list {
      list-style: none;
      900px;
      margin: 100px auto;
      background-color: powderblue;
      }
       
      .list li {
      float: left;
      padding: 4px 0;
      margin: 0 18px;
      160px;
      line-height: 48px;
      text-align: center;
       
      }
       
      .list a {
      display: block;
      color: #000;
      text-decoration: none;
      font-size: 30px;
      position: relative;
      }
       
      .list span {
      display: block;
      100%;
       
      }
       
      .list span:after {
      position: absolute;
      left: 50%;
      right: 50%;
      bottom: 0;
      content: "";
      display: block;
      transition: .65s;
      border-bottom: solid 2px transparent;
       
      }
       
      .list a:hover span:after {
      left: 0;
      right: 0;
      border-bottom: solid 2px deeppink;
      }
       
      .clearfix:after, .clearfix:before {
      content: "";
      display: table;
      }
       
      .clearfix:after {
      clear: both;
      }
       
      .clearfix {
      *zoom: 1;
      }
       
      </style>
      </head>
      <body>
      <ul class="list clearfix">
      <li><a href="#" class="title_a move"><span class="T_title">首页</span></a></li>
      <li><a href="#" class="title_a move"><span class="T_title">家庭服务</span></a></li>
      <li><a href="#" class="title_a move"><span class="T_title">企业服务</span></a></li>
      <li><a href="#" class="title_a move"><span class="T_title">收纳服务</span></a></li>
      </ul>
       
      </body>
      </html>
  • 相关阅读:
    原生内存泄漏检测
    安卓适配
    游戏里的动态阴影-ShadowMap实现原理
    游戏里的跨地图寻路算法
    Unity-Shader-动态阴影(上) 投影的矩阵变换过程
    Unity-奥义技能背景变黑效果
    UGUI学习笔记
    Unity-Shader-镜面高光Phong&BlinnPhong-油腻的师姐在哪里
    Unity-Shader-光照模型之漫反射
    Unity3D-Shader-热扭曲效果
  • 原文地址:https://www.cnblogs.com/opcec/p/5472545.html
Copyright © 2011-2022 走看看