首页 > 其他 > 详细

8.右下角的弹出广告

时间:2018-10-03 10:41:05      阅读:178      评论:0      收藏:0      [点我收藏+]
<!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.右下角的弹出广告

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!