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

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

<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同级来做,这样就没问题了,我在想这个问题可能跟子绝对定位有关系!!!

目录
相关文章
|
机器学习/深度学习 数据挖掘 PyTorch
视觉神经网络模型优秀开源工作:PyTorch Image Models(timm)库(上)
视觉神经网络模型优秀开源工作:PyTorch Image Models(timm)库(上)
|
存储 数据采集 数据格式
Python自动化Office文档处理全攻略
本文介绍如何使用Python自动化处理Word、Excel和PDF文档,提升办公效率。通过安装`python-docx`、`openpyxl`、`pandas`、`PyPDF2`和`pdfplumber`等库,可以轻松实现读取、修改、创建和批量处理这些文档。具体包括:自动化处理Word文档(如读取、修改内容、调整样式),Excel文档(如读取、清洗、汇总数据),以及PDF文档(如提取文本和表格数据)。结合代码示例和实战案例,帮助你掌握高效办公技巧,减少手动操作的错误率。
880 1
|
负载均衡 应用服务中间件 nginx
如何使用nginx实现负载均衡?
如何使用nginx实现负载均衡?
|
SQL 关系型数据库 MySQL
创建包含MySQL和SQLServer数据库所有字段类型的表的方法
创建一个既包含MySQL又包含SQL Server所有字段类型的表是一个复杂的任务,需要仔细地比较和转换数据类型。通过上述方法,可以在两个数据库系统之间建立起相互兼容的数据结构,为数据迁移和同步提供便利。这一过程不仅要考虑数据类型的直接对应,还要注意特定数据类型在不同系统中的表现差异,确保数据的一致性和完整性。
318 4
Qt绘图之QWidget
Qt绘图之QWidget
289 1
|
编解码 数据可视化 前端开发
可视化大屏适配scale方案
本文介绍了一种使用CSS实现可视化大屏适配的方案。通过设置容器的`transform: scale()`属性,根据屏幕大小动态调整大屏内容的缩放比例,从而实现不同分辨率下的适配。文章提供了详细的实现方法,包括Vue组件的模板、逻辑和样式代码,并展示了实际效果的对比图。此外,还推荐了一个npm包`autofit.js`,用于简化大屏适配的实现。
806 1
可视化大屏适配scale方案
|
Linux
Realtek 网卡 支持RK vendor mac地址写入
Realtek 网卡 支持RK vendor mac地址写入
663 4
|
前端开发 开发者
React 提供的其他重要 Hooks
【10月更文挑战第20天】React 提供了一系列强大的 Hooks,除了 `useRef` 之外,还有许多其他重要的 Hooks,它们共同构成了函数式组件开发的基础。
261 62
yolov5的coco128.yaml的配置信息详解
这篇文章详细解释了YOLOv5的`coco128.yaml`配置文件中的参数,包括训练和验证数据集的路径、类别数量以及类别名称。
836 0
|
存储 自然语言处理 机器人
【Azure 机器人】微软Azure Bot 编辑器系列(1) : 创建一个天气对话机器人(The Bot Framework Composer tutorials)
【Azure 机器人】微软Azure Bot 编辑器系列(1) : 创建一个天气对话机器人(The Bot Framework Composer tutorials)
206 0