zoukankan      html  css  js  c++  java
  • css3动态边框

    <ul class="partnersLogo">
      <li>
        <a href="http://www.chinapnr.com/" target="_blank">
          <div class="border_top"></div>
          <div class="border_right"></div>
          <div class="border_bottom"></div>
          <div class="border_left"></div>
          <img src="../images/home/partnersLogo2.jpg" alt="" />
        </a>
      </li>
    </ul>
    

      .partners li a{
        display:block;
        }
      .partners li{
        float:left;
        height:39px;
        padding:12px 0;
        line-height:39px;
        margin-right:7px;

        position:relative;
       }


    .border_top{ position:absolute; height:1px; 0; font-size:0; background:#49d6da; top:11px; left:-1px; -webkit-transition:all 0.3s ease-out; -o-transition:all 0.3s ease-out; transition:all 0.3s ease-out; } .border_right{ position:absolute; height:0; 1px; font-size:0; background:#49d6da; bottom:9px; right:-1px; -webkit-transition:all 0.3s ease-out; -o-transition:all 0.3s ease-out; transition:all 0.3s ease-out; } .border_bottom{ position:absolute; height:1px; 0; font-size:0; background:#49d6da; right:0; bottom:9px; -webkit-transition:all 0.3s ease-out; -o-transition:all 0.3s ease-out; transition:all 0.3s ease-out; } .border_left{ position:absolute; height:0; 1px; font-size:0; background:#49d6da; left:-1px; top:12px; -webkit-transition:all 0.3s ease-out; -o-transition:all 0.3s ease-out; transition:all 0.3s ease-out; } .partners li a:hover .border_top{120px} .partners li a:hover .border_bottom{119px} .partners li a:hover .border_left,.partners li a:hover .border_right{height:42px}

      

      

  • 相关阅读:
    计算两张图的余弦相似度
    绘制heatmap
    TensorFlow图像识别(物体分类)入门教程
    毕业设计任务01-前期调查与选题
    个人附加作业
    个人作业3——个人总结(Alpha阶段)
    结对编程2——单元测试
    个人作业2——英语学习APP案例分析
    结对作业1----基于GUI的四则运算生成器
    个人作业1——四则运算题目生成程序
  • 原文地址:https://www.cnblogs.com/lixiaoxing/p/5391029.html
Copyright © 2011-2022 走看看