zoukankan      html  css  js  c++  java
  • css3样式控制(鼠标滑过 显示标注信息)

        <div class="item">
                <h1>A</h1>
                <div class="tooltip">
                    <p>Take a look at our crew and become a friend.</p>
                    <div class="arrow"></div>
                </div>
            </div>
    
            <div class="item">
                <h1>C</h1>
                <div class="tooltip">
                    <p>Explore our process and see how we can help.</p>
                    <div class="arrow"></div>
                </div>
            </div>
    .item  {width:100px;
            height:100px;
            margin:15px;
            background:#73a058;
            float:left;
            border-radius:50px;}
    
    h1    {font-family:'HeydingsCommonIconsRegular', sans-serif;
           font-weight:normal;
           margin:30px 0 0 0;
           color:#fff;
      text-align:center;
           font-size:60px;
           line-height:30px;}
    
    .tooltip p { font-family: sans-serif;
                 font-size:14px;
      font-weight:300;}
    
    .tooltip { width:120px;
               padding:10px;
               border-radius:3px;
               position:absolute;
               box-shadow:1px 1px 10px 0 #ccc;
               margin: -500px 0 0 -20px;
               background:#fff;
               -webkit-transition:margin .5s ease-in-out;            //样式属性过渡  (CSS 属性的名称,成过渡效果需要多少秒或毫秒),
    ease-in-out 由慢到快再到慢 -moz-transition:margin .5s ease-in-out;} .item:hover { background:#6d643b;} .item:hover .tooltip { margin:-145px 0 0 -20px; transition: margin .15s ease-in-out; -webkit-transition: margin .15s ease-in-out; -moz-transition: margin .15s ease-in-out;} .arrow { position:absolute; margin:10px 0 0 50px; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid #fff; }

  • 相关阅读:
    20191114PHP验证码
    20191114PHP图像绘制
    20191114PHP文件操作
    20191108添加数组元素操作
    20191108数组组合练习案例
    20191108PHP数组查找练习
    20191107数组排序练习
    20191107PHP创建数组练习
    20191107万年历
    20191101php日期练习
  • 原文地址:https://www.cnblogs.com/dazhangli/p/5942886.html
Copyright © 2011-2022 走看看