右侧悬浮菜单悬浮窗 css+html css自动判断PC显示手机端隐藏
源自:http://miwua.com/1521.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


