制作页面右下脚伸缩框样式

简介: 扫描二维码关注 ...

<div class="fix-bottom fix-bottom-code">
        <div class="list-item">
                <div class="item-info hide">
                    <img src="/resources/img/v2/ewmtb_1.png">
                    <div class="sm-txt">扫描二维码关注</div>
                </div>
                <a href="#" class="code">
                    <span class="icons-code-lg"></span>
                    <span class="txt">微信扫描</span>
                </a>
        </div>
        
    </div>
    <div class="fix-bottom fix-bottom-home">
        <div class="list-item">
            <a href="#">
                    <span class="icons-home-lg"></span>
                    <span class="txt2">返回首页</span>
            </a>
        </div>
        
    </div>
    <div class="fix-bottom fix-bottom-comment">
        <div class="list-item">
            <a href="#">
                    <span class="icons-comment-lg"></span>
                    <span class="txt2">意见反馈</span>
            </a>
        </div>
    </div>
    <div class="fix-bottom fix-bottom-up">
        <div class="list-item">
            <a href="#">
                    <span class="icons-up-lg"></span>
                    <span class="txt2">返回顶部</span>
            </a>
        </div>    
    </div>
/*右下脚悬浮操作开始*/
.fix-bottom-code {
    position: fixed;
    bottom: 217px;
    right: -75px;
}

.fix-bottom-home {
    position: fixed;
    bottom: 161px;
    right: -75px;
}

.fix-bottom-comment {
    position: fixed;
    bottom: 105px;
    right: -75px;
}

.fix-bottom-up {
    position: fixed;
    bottom: 50px;
    right: -75px;
}

.fix-bottom .list-item a {
    border: 1px solid #DBDBDB;
    border-radius: 4px 0 0 4px;
    width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-right: none;
    padding-left: 14px;
    background-color: #fff;
}

.fix-bottom-code>.list-item>a {
    background-color: #219EED;
    border: none;
    border-radius: 0;
}

.fix-bottom>.list-item>a>.txt2 {
    display: inline-block;
    font-size: 13px;
    color: #555;
    margin-left: 15px;
}

.fix-bottom>.list-item .sm-txt {
    color: #333;
    font-size: 13px;
    text-align: center;
    margin-bottom: 5px;
}

.fix-bottom-code>.list-item>a>.txt {
    font-size: 13px;
    color: #fff;
    margin-left: 15px;
}

.fix-bottom-code>.list-item>.item-info {
    border: 1px solid #219EED;
    text-align:center;
}

.icons-code-lg {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url(/resources/img/v2/sytbhc_1.png);
    background-position: -100px -100px;
}

.icons-home-lg {
    display: inline-block;
    width: 20px;
    height: 17px;
    background-image: url(/resources/img/v2/sytbhc_1.png);
    background-position: -150px -100px;
}

.icons-comment-lg {
    display: inline-block;
    width: 23px;
    height: 21px;
    background-image: url(/resources/img/v2/sytbhc_1.png);
    background-position: -200px -100px;
}

.icons-up-lg {
    display: inline-block;
    width: 19px;
    height: 11px;
    background-image: url(/resources/img/v2/sytbhc_1.png);
    background-position: -250px -100px;
}
/*右下肢悬浮操作结束*/
function initHoverBottombar() {
    $('.fix-bottom').hover(function(e) {
        var this$ = $(this);
        this$.find('.item-info').removeClass('hide');
        this$.animate({
            'right': "0"
        });
    }, function(e) {
        var this$ = $(this);
        this$.animate({
            'right' : '-75px'
        },function(e){
            this$.find('.item-info').addClass('hide');
        });
    });
}

总结:

1、刚开始我是使用ur-li这种来做,但是点击其中一个,其它的都展开了,然后又替换成div-div但是这种也有相同情况,于是我只好分开来做用div div同级来做,这样就没问题了,我在想这个问题可能跟子绝对定位有关系!!!

目录
相关文章
|
存储 数据采集 缓存
医学影像PACS:大容量图像存储 报告单多种模式及自定义样式
医学影像PACS:大容量图像存储 报告单多种模式及自定义样式
2134 0
医学影像PACS:大容量图像存储 报告单多种模式及自定义样式
|
Java
解决Java- 错误: 找不到或无法加载主类 HelloWorld.java
针对初学者使用javac,java等命令编译class文件时出现的经典问题,提供解决思路和方法。
11607 98
解决Java- 错误: 找不到或无法加载主类 HelloWorld.java
|
人工智能 安全 JavaScript
《鸿蒙HarmonyOS应用开发从入门到精通(第2版)》学习笔记——HarmonyOS纯血鸿蒙新特性
HarmonyOS 3.1引入了Stage模型,增强ArkTS语言、应用程序框架、Web、ArkUI等子系统能力。新增功能包括Ability框架的Stage开发模型、ArkUI组件能力提升、应用包管理接口、公共基础类库支持Buffer读写、Web服务文档预览及编辑、图形图像编解码支持等。从API 9开始,Stage模型成为主要开发模型,支持更灵活的应用生命周期管理和窗口调度,提供更好的组件与窗口弱耦合体验。此外,HarmonyOS NEXT开发者预览版实现了全面自研,被称为“纯血鸿蒙”,具备自主可控、高度弹性、更强的安全性和隐私保护特性。
1299 21
|
机器学习/深度学习 存储 监控
基于YOLOv8深度学习的路面坑洞检测与分割系统【python源码+Pyqt5界面+数据集+训练代码】深度学习实战、目标分割(1)
基于YOLOv8深度学习的路面坑洞检测与分割系统【python源码+Pyqt5界面+数据集+训练代码】深度学习实战、目标分割
|
算法 程序员 编译器
【C语言】注释
【C语言】注释
820 2
|
存储 C++ 容器
【C++】list的认识与使用
【C++】list的认识与使用
|
机器学习/深度学习 数据采集 数据挖掘
数据分享|SAS数据挖掘EM贷款违约预测分析:逐步Logistic逻辑回归、决策树、随机森林
数据分享|SAS数据挖掘EM贷款违约预测分析:逐步Logistic逻辑回归、决策树、随机森林
|
存储 安全 编译器
C语言关键字入门 这一篇足矣
说明⇢C语言关键字实际上就是编译器预先定义了一定的意义(物理意义)的字符串。
673 1
C语言关键字入门 这一篇足矣

热门文章

最新文章