0
点赞
收藏
分享

微信扫一扫

基于matlab实现的额 BP神经网络电力系统短期负荷预测未来(对比+误差)完整程序分享

莞尔小迷糊 2023-09-16 阅读 28

 

目录

一、HTML代码

二、CSS代码

三 、JS代码

四、效果展示


一、HTML代码

    <a href="#" id="back-to-top" title="Back to Top"><i class="fa fa-angle-up fa-1x"></i></a>

二、CSS代码


#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    color: #fff;
    background-color: #A233C6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    opacity: 0.7;
    cursor: pointer;
}

#back-to-top:hover {
    opacity: 1;
}

三 、JS代码

        window.addEventListener('scroll', function() {
            var backToTopButton = document.getElementById('back-to-top');
            if (window.pageYOffset > 100) {
                backToTopButton.style.display = 'block';
            } else {
                backToTopButton.style.display = 'none';
            }
        });

        document.getElementById('back-to-top').addEventListener('click', function(e) {
            e.preventDefault();
            window.scrollTo({ top: 0, behavior: 'smooth' });
        });

四、效果展示

举报

相关推荐

0 条评论