码迷,mamicode.com
首页 > 其他好文 > 详细

8.右下角的弹出广告

时间:2018-10-03 21:29:53      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:jpg   com   info   cli   osi   click   position   alt   parent   

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="jquery-3.3.1.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #ad{
            position: absolute;
            right: 0;
            bottom: 0;
        }
        #close{
            position: absolute;
            top: 2px;
            right: 10px;
            cursor: pointer;
        }
    </style>
    <script>
        $(function () {
            $("#ad").slideDown("slow")
                    .slideUp("normal")
                    .fadeIn(1000)
                    .children("#close").click(function () {
                        $(this).parent().fadeOut();
                    })
        })
    </script>
</head>
<body>
<div id="ad">
    <img src="ad.jpg" alt=""/>
    <img src="h.jpg" alt="" id="close"/>
</div>
</body>
</html>

技术分享图片技术分享图片

8.右下角的弹出广告

标签:jpg   com   info   cli   osi   click   position   alt   parent   

原文地址:https://www.cnblogs.com/alex-xxc/p/9738768.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!