zoukankan      html  css  js  c++  java
  • 无聊,纯css写了个评分鼠标移入的效果

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <title>Document</title>
    </head>
    <body>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        span {
            display: block;
            width: 30px;
            height: 30px;
            padding-left: 30px;
            background-image: url(https://images0.cnblogs.com/blog/294743/201304/21141707-77236dc5976d4f7db624bf3a5d2eee28.gif);
            background-repeat: no-repeat;
            background-position: 0 -3px;
        }
        span span span span span {
            padding-left: 0;
        }
        span:hover {
            background-position: 0 -31px;
        }
    </style>
    <span>
        <span>
            <span>
                <span>
                    <span></span>
                </span>
            </span>
        </span>
    </span>
    </body>
    </html>

     效果如下

     

  • 相关阅读:
    对js数组的splice实现
    前端必读
    命令模式
    访问者模式
    观察者模式
    解释器模式
    装饰器模式
    组合模式
    抽象工厂模式
    搜索结果关键词高亮显示
  • 原文地址:https://www.cnblogs.com/feng524822/p/3812949.html
Copyright © 2011-2022 走看看