专栏首页钻芒博客右侧悬浮菜单悬浮窗 css+html css自动判断PC显示手机端隐藏 Alextao html
原创

右侧悬浮菜单悬浮窗 css+html css自动判断PC显示手机端隐藏 Alextao html

源自:请查看原文内。感觉还不错,只是部署到博客不太搭配(颜色太鲜艳了),用css加了个设备判断,电脑端显示、手机端隐藏。1221px 界点

预览:

css

<!--右侧悬浮菜单 開始-->
<style>
	/*footer*/

.elevator_item .hd-time-limited {
    display: block;
    position: fixed;
    right: 10.6px;
    bottom: 450px;
    width: 40px;
    height: 140px;
    background: url(https://www.6fwq.com/wp-content/uploads/2019/01/time-limited.png) no-repeat center;
    animation: vip-199-180510 2.4s infinite;
    margin-top: 10px;
}

@keyframes vip-199-180510 {
    0% {
        bottom: 442px;
    }
    50% {
        bottom: 450px;
    }
    100% {
        bottom: 442px;
    }
}

.aj-popbox .hd-time-limited .close-btn {
    width: 38px;
    height: 38px;
    right: 28px;
    top: 30px;
    line-height: 38px;
    text-align: center
}

.aj-popbox .hd-time-limited .close-btn i {
    font-size: 24px;
    color: #fff
}

.aj-popbox .hd-time-limited .timer {
    margin: 296px auto 0;
    width: 234px;
    font-size: 30px;
    color: #000;
    line-height: 48px;
    padding-left: 10px;
    letter-spacing: 13px;
    font-weight: bold
}

.aj-popbox .hd-time-limited .go-hd:hover {
    transform: scale(.95) translateY(2px)
}

.elevator_item {
    position: fixed;
    right: 12px;
    bottom: 195px;
    z-index: 11
}

.elevator_item .feedback {
    width: 36px;
    height: 40px;
    background-color: #fff;
    color: #fa3c64;
    font-size: 12px;
    padding: 5px 6px;
    display: block;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    cursor: pointer
}

.elevator_item .advice,
.elevator_item .add,
.elevator_item .return {
    color: #383838;
    line-height: 30px
}

.elevator_item .advice i {
    font-size: 28px
}

.elevator_item .add i,
.elevator_item .return i {
    font-size: 20px
}

.elevator_item .medium {
    position: relative;
    background-color: #fa3c64;
    color: #fff
}

.elevator_item .medium .lf-box {
    display: none;
    position: absolute;
    right: 41px;
    top: -90px;
    width: 370px;
    height: 280px;
    padding-right: 10px
}

.elevator_item .medium .sp-list {
    width: 360px;
    height: 280px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35)
}

.elevator_item .medium .sp-list li:first-child {
    height: 70px;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 50px
}

.elevator_item .medium li:first-child span {
    font-size: 14px;
    color: #383838;float: left;
    line-height: 30px
}

.elevator_item .medium .btn-addGroup {
    width: 90px;
    height: 30px;
    border-radius: 5px;
    background: #fa3c64;
    color: #fff;
    line-height: 30px;
    text-align: center;
    float: left;
    margin-left: 14px
}

.elevator_item .medium .spl-li {
    padding: 22px 34px 0
}

.elevator_item .medium .spl-li span {
    display: block;
    font-size: 14px;
    color: #383838;
    margin-bottom: 8px
}

.elevator_item .medium .spl-li img {
    width: 130px
}

.elevator_item .add {
    position: relative
}

.elevator_item .add .lf-box {
    display: none;
    position: absolute;
    right: 31px;
    top: -32px;
    width: 178px;
    height: 104px;
    padding-right: 10px
}

.elevator_item .add .sp-list {
    width: 168px;
    height: 104px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(100, 25, 25, 0.35)
}

.elevator_item .add .sp-list li {
    line-height: 52px;
    font-size: 14px;
    color: #383838;
    text-align: left
}

.elevator_item .add .sp-list li a {
    display: block;
    height: 52px;
    width: 100%
}

.elevator_item .add .sp-list li:hover a {
    color: #fa3c64
}

.elevator_item .add .sp-list li:hover i {
    color: #fa3c64
}

.elevator_item .add .sp-list li:first-child {
    border-bottom: 1px solid #e5e5e5
}

.elevator_item .add .sp-list i {
    color: #d8d8d8;
    font-size: 28px;
    margin-left: 16px;
    margin-right: 14px;
    vertical-align: middle
}

.elevator_item .add:hover>i,
.elevator_item .return:hover>i {
    color: #fa3c64
}

.elevator_item .feedback:hover .lf-box {
    display: block
}

.fl {
    float: left
}

.fr {
    float: right
}

.graHover {
    position: relative;
    overflow: hidden
}

.graHover:before {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .2)
}

.graHover:hover:before {
    display: block
}

.clearfix {
    *zoom: 1
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0
}
@media screen and (max-width: 1221px) { .wapnone{display:none; }

</style>
<!--右侧悬浮菜单  結束-->

不锈钢料槽

html

actionscriptapacheconfapplescriptaspnetbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyaml<div class="elevator_item mobile-hide" id="elevator_item">
	<a class="hd-time-limited mobile-hide" href="http://dg99.cn" target="_blank" rel="nofollow"></a>
	<a target="_blank" class="feedback graHover mobile-hide" style="background-color: #1e6be3;color:#fff;" href="http://img.zmki.cn" rel="nofollow">在线图床</a><a target="_blank" class="feedback graHover mobile-hide" style="background-color: #ffd900;color:#383838;" href="http://www.dg99.cn" target="_blank" rel="nofollow">业务平台</a>
    
    <a target="_blank" class="feedback graHover mobile-hide" style="background-color: #fa3c63;color:#fff;" href="https://www.zmki.cn" rel="nofollow">积分获取</a><a target="_blank" class="feedback graHover mobile-hide" style="background-color: #1e6be3;color:#fff;" href="https://www.zmki.cn" rel="nofollow">积分素材</a><div class="feedback medium mobile-hide">官方客服
        <div class="lf-box mobile-hide"><ul class="sp-list mobile-hide"><li><span>官方客服:20838641</span><a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=20838641" target="_self" class="btn-addGroup graHover" rel="nofollow">一键联系</a></li><li class="spl-li clearfix mobile-hide"><div class="fl mobile-hide"><span>微信公众号</span><img src="https://a-oss.zmki.cn/2019/03/05/5c7de96bd4328.png" alt=""></div><div class="fr mobile-hide"><span>微信公众号</span><img src="https://a-oss.zmki.cn/2019/03/05/5c7de96bd4328.png" alt=""></div></li></ul></div></div>
  </div>
 <!--右侧浮动 结束-->

本文转载自:钻芒博客

原文链接:https://www.zmki.cn/5002.html

原创声明,本文系作者授权云+社区发表,未经许可,不得转载。

如有侵权,请联系 yunjia_community@tencent.com 删除。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 【案例】如何制作纯css3酷炫3D科技感菜单动画特效

    今天段老师给同学们带来的是一段纯CSS3实现的超炫酷3D菜单特效(实现了互动效果的菜单导航效果)。

    用户1730674
  • 前端进阶第4周打卡题目汇总

    1. 解释一下在js里,0.1+0.2为什么等于0.30000000000000004,如何通过代码解决这个问题?

    徐小夕
  • 前端基础-CSS

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

    cwl_java
  • 用 Pytorch 理解卷积网络

    原标题 | CONVOLUTIONAL NEURAL NETWORKS EXPLAINED: USING PYTORCH TO UNDERSTAND CNNS

    AI研习社
  • 工控安全入门之攻与防

    2010 年 6 月,一个名为 Stuxnet处于休眠状态的病毒潜伏在伊朗的铀浓缩设施网络中,Stuxnet在位于纳坦兹的离心机中被激活,控制了30%的纳坦兹设...

    FB客服
  • 《手把手教你》系列练习篇之3-python+ selenium自动化测试(详细教程)

      前面介绍了,XPath, id , class , link text, partial link text, tag name, name 七大元素定位方...

    北京-宏哥
  • 前端基础-HTML

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

    cwl_java
  • 手把手教你用Flutter做炫酷动画

    导读:随着技术的发展,很多网页开发技术都带有动画效果,比如淡入淡出、渐变、变大变小,等等。Flutter中的动画效果可以用酷炫来形容,这也是Flutter的一大...

    华章科技
  • 如何优雅简洁地实现时钟翻牌器(支持JS/Vue/React)

    双十一剁手节过去了,大家应该在很多网页中看到了数字翻牌的效果吧,比如倒计时、数字增长等。相信很多人都已经自己独立实现过了,我也在网上看了一些demo,发现HTM...

    Nealyang
  • 前端进阶第3周打卡题目汇总

    思路大致是这样的,你们也可以根据业务自己封装更复杂的ajax库,比如添加请求响应拦截器

    徐小夕

扫码关注云+社区

领取腾讯云代金券