• web前端学习的第二天


    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style type="text/css">
            *{
                margin:0;
                padding:0;
            }
            body{
                background:#F5C764;
            }
            .box{
                660px;
                height:660px;
                border:1px dashed #006A90;
            }
            ul li{
                300px;
                height:300px;
                padding:15px;
                float:left;
                list-style:none;
                position: relative;
            }
            .cover{
                300px;
                height:300px;
                position:absolute;
                text-align:center;
                padding:10px;
                line-height:300px;
                margin-top:0px;
                background:rgba(251,32,32,0.5);
                left:5px;
                top:5px;
                display: none;
            }
            ul li img{
                box-shadow: 0 0 10px #000;
            }
        </style>
    </head>
    <body>
    <div class="box">
        <ul>
            <li>
                <div class="pic"><img src="../xs2.26imgs/1.jpg" width="300" height="300"></div>
                <div class="cover"><img src="../xs2.26imgs/1.jpg"  width="50" height="50"></div>
            </li>
            <li>
                <div class="pic"><img  src="../xs2.26imgs/2.jpg" width="300" height="300"></div>
                <div class="cover"><img src="../xs2.26imgs/2.jpg" width="50" height="50"></div>
            </li>
            <li>
                <div class="pic"><img  src="../xs2.26imgs/3.jpg" width="300" height="300"></div>
                <div class="cover"><img src="../xs2.26imgs/3.jpg" width="50" height="50"></div>
            </li>
            <li>
                <div class="pic"><img  src="../xs2.26imgs/4.jpg" width="300" height="300"></div>
                <div class="cover" ><img src="../xs2.26imgs/4.jpg"width="50" height="50"></div>
            </li>
        </ul>
    </div>
    <script src="jquery-2.1.4.min.js"></script>
    <script type="text/javascript">
    $('.cover').hide();
    $('ul li').hover(function(){
        $(this).find('.cover').stop().fadeTo(1000,1);
    },function (){
        $(this).find('.cover').stop().fadeTo(500,0);
    }) ;
    
    </script>
    </body>
    </html>
  • 相关阅读:
    网络嗅探与协议分析之验收题
    20199121《网络攻防实践》第四周作业
    如何设计一个卡方检验
    20199121《网络攻防实践》第三周作业
    openssl制作证书全过程及https实现
    Padding Oracle攻击解密AES
    virt-sysprep命令清理缓存文件时失败的解决方法
    OpenStack的centos镜像制作
    KVM--Host does not support any virtualization...
    Centos7 安装VNC实现远程桌面
  • 原文地址:https://www.cnblogs.com/xiaoshitou188/p/5221984.html
Copyright © 2020-2023  润新知