博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
左侧楼层导航
阅读量:5153 次
发布时间:2019-06-13

本文共 4372 字,大约阅读时间需要 14 分钟。

<!---------------左侧楼层--------------->

<div class="FloorsDiv" style="display: block;">
<div class="smwrap" style="display:inline-block">
    <span class="floor">1F</span>    
    <span class="hide"><a href="#FloorDiv01">搜索通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
</div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
    <span class="floor">2F</span>
    <span class="hide"><a href="#FloorDiv02">微信通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
    <span  class="floor">3F</span>
    <span class="hide"><a href="#FloorDiv03">建站通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
    <span  class="floor">4F</span>
    <span class="hide"><a href="#FloorDiv04">网店通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
    <span  class="floor">5F</span>
    <span class="hide"><a href="#FloorDiv05">外贸通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
    <span  class="floor">6F</span>
    <span class="hide"><a href="#FloorDiv06">设计通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
   <span  class="floor">7F</span>
    <span class="hide"><a href="#FloorDiv07">企业通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
     <span  class="floor">8F</span>
    <span class="hide"><a href="#FloorDiv08">法务通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
     <span  class="floor">9F</span>
    <span class="hide"><a href="#FloorDiv09">知产通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
     <span  class="floor">10F</span>
    <span class="hide"><a href="#FloorDiv10">财税通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
<div class="smwrap" style="display:inline-block">
     <span  class="floor">11F</span>
    <span class="hide"><a href="#FloorDiv11">社保通</a></span>
    <img src="/Content/images/NewIndexImg/FloorsLine.jpg" height="1" width="47" style="float: left;">
    </div>
    <div style="clear: both;"></div>
</div>

 

js

<script>

    $('.smwrap').mouseover(function () {
        //alert('a');
        $(this).children('.floor').css("display", "none");
        $(this).children('.floor').next(".hide").css({
            "display": "block",
            "background": "#3b9cdf",
            });
             $(".hide a").css({
            "display": "block",
            "color": "#fff",
            });
    })
    $('.smwrap').mouseout(function () {
        //alert('a');
        $(this).children('.floor').css("display", "block");
        $(this).children('.floor').next(".hide").css({
            "display": "none",
            "background": "#fff",
            "color": "#333"
        });
    })
     $(window).scroll(function () {
                 if ($(document).scrollTop() >= $(window).height()) {
                     $(".FloorsDiv").fadeIn(1000);
                 } else {
                     $(".FloorsDiv").fadeOut(1000);
                 }
             });
</script>

css

/*-------------------楼层---------------*/

 .FloorsDiv {
width: 47px;
height:auto;
display: inline-block;
position: fixed;
z-index: 99998;
left:100px;
bottom: 50px;
text-align:center;
background:#fff;
color:#a9a9a9;
}
 .FloorsDiv span{
     width:47px;
     height:25px;
     line-height:25px;
     float:left;
     font-size:14px;
     text-align:center;
     }
 .FloorsDiv span a{
     font-size:12px;
     color:#a9a9a9;}
    
.hide{display:none;}
#FloorDiv01,#FloorDiv02,#FloorDiv03,#FloorDiv04,#FloorDiv05,#FloorDiv06,#FloorDiv07,#FloorDiv08,#FloorDiv09,#FloorDiv10,#FloorDiv11
{
    display:inline-block;
    }

转载于:https://www.cnblogs.com/zhouyx/p/5508070.html

你可能感兴趣的文章
C#与vb6 com组件的互相调用方法
查看>>
对象-关系映射ORM(Object Relational Mapping)(转)
查看>>
ISP DSP的不同
查看>>
深入Linux grep指令的详解(实用型)
查看>>
嵌入式根文件系统的移植和制作详解
查看>>
单片机定时器中断原理
查看>>
Ignite 配置更新Oracle JDBC Drive
查看>>
partproble在RHEL 6下无法更新分区信息
查看>>
c网购物车流程图
查看>>
xapth(笔记)
查看>>
HTTP 错误 403.6 - Forbidden 解决方案
查看>>
一个小例子介绍Obj-C的函数命名方式
查看>>
关于Bootstrap的理解
查看>>
十种基本排序算法
查看>>
hdu 2089 数位dp入门
查看>>
I/O的一些简单操作
查看>>
Handbook之012:函数类别构型
查看>>
php取整函数ceil,floor,round,intval的区别
查看>>
局部富文本
查看>>
例题6-7 树的层次遍历
查看>>