底部漂浮按钮

发布时间:2020年04月03日 阅读:56 次

底部漂浮按钮

放到底部公告栏或者在线下单栏

演示图:

56156.png


代码如下:

<style>

* {margin:0px; padiing:0px;}

.login_alert{position:fixed;bottom:0px;left:0px;width:100%;z-index:9999;}

.login_alert_close{position:absolute;top:-10px;right:0px;z-index:1;cursor:pointer;}

.login_alert_box{width:100%;text-align:center; background-color:rgba(61, 61, 61, 0.6); height:60px;}

.login_alert_box div{cursor:default; font-family:'微软雅黑'; color:#66CCFF; font-size:26px; font-weight:bold; line-height:80px;}

.login_alert_box div a{text-decoration:none;display:inline-block;padding:5px 20px; font-size:20px; color:#000; background-color:#00CC99; border-radius:4px; line-height:26px;}

.login_alert_box div span{font-size:18px;}

.login_alert{animation:show_alert_left 1.6s;-webkit-animation:show_alert_left 1.6s;-moz-animation:show_alert_left 1.6s;}

.login_alert_box{background-color:rgba(0,0,0,0.6);height:60px;}

.login_alert_box:hover{background-color:rgba(0,0,0,0.8);}

.login_alert_box div{color:#66CCFF;font-size:26px;line-height:60px;}

.login_alert_box div a{font-size:20px;line-height:25px;border-radius:40px;}

 

@keyframes show_alert_left{

from{left:-100%;}

to{left:0px;}

}

@-webkit-keyframes show_alert_left{

from{left:-100%;}

to{left:0px;}

}

@-moz-keyframes show_alert_left{

from{left:-100%;}

to{left:0px;}

}

</style>

<div class="login_alert" id="login_alert" >

<div class="login_alert_box">

<div>

<a href="/user/reg.php" style="color: #FF0000;background-color:#43CD80"  rel="nofollow">开通分站</a>

<a href="/user" style="color: #FF0000;background-color:#FFCC33;"  rel="nofollow">后台登录</a>

</div>

</div>

</div>


Tag:
相关文章