• 鼠标移入文字上向右移动效果


    例子1:

      <style>
    
            h1, h2, h3, h4, h5, h6 {
                font-size: 100%;
                font-weight: normal;
            }
            a {
                outline: none;
                color: #21759b;
            }
            a:link {
                color: black;
                margin-left: 10px;
                text-decoration: none;
            }
            a:visited {
                color: black;
                text-decoration: none;
            }
            a:hover {
                color: #21759b;
            }
            a:active {
                color: black;
                text-decoration: none;
            }
            .postTitle {
                border-left: 12px solid #21759b;
                margin-bottom: 10px;
                font-size: 20px;
    
                 100%;
    
            }
            .postTitle a:link, .postTitle a:visited, .postTitle a:active {
                color: #21759b;
                transition: all 0.4s linear 0s;
            }
            .postTitle a:hover {
                margin-left: 30px;
                color: #0f3647;
                text-decoration: none;
            }
    
        </style>
    
    
    <body style="margin: auto;">
        <div class="post">
            <h1 class="postTitle">
                <a id="cb_post_title_url" class="postTitle2" href="#">试一试</a>
            </h1>
        </div>
    
    </body>

    例子2:

    <style>
    
            #aaa{
                border-left:12px solid #21759b;
            }
            #div1 {
                -webkit-transition: margin-left .8s;
                -moz-transition: margin-left .8s;
                -o-transition: margin-left .8s;
            
            }
            #div1:hover {
                margin-left: 10px;
            }
    
    
        </style>
    
    
    <body style="margin: auto;">
        <div id="aaa">
            <div id='div1'>>>>鼠标移入此行会缓慢向右路移动<<<</div>
        </div>
    </body>
  • 相关阅读:
    STL之vector
    [洛谷P3942] 将军令
    [洛谷P2127] 序列排序
    [USACO07FEB]新牛棚Building A New Barn
    [洛谷P1120] 小木棍 [数据加强版]
    [洛谷P1438] 无聊的数列
    我的Emacs配置
    [CQOI2015]任务查询系统
    可持久化数组入门
    学习openstack(六)
  • 原文地址:https://www.cnblogs.com/smile1/p/12007164.html
Copyright © 2020-2023  润新知