贴着主体 随屏幕滚动

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<div class="feedback">
    <div class="fb-item fb-qq">
     <span class="fb-text" style="top: 0px; overflow: hidden; left: 0px; width: 36px;">联系客服</span>
     <span class="fb-ico"></span>
    </div>
    <div class="fb-item fb-phone">
     <span class="fb-text" style="overflow: hidden; left: 0px; width: 36px;">联系电话</span>
     <span class="fb-ico"></span>
    </div>
    <div class="fb-item fb-suggestion">
        <span class="fb-text" style="overflow: hidden; left: 0px; width: 36px;">意见建议</span>
        <span class="fb-ico"></span>
    </div>
</div>
 
<style>
.feedback {
 position: fixed;
 _position: absolute;
 z-index: 9999;
 top: 50%;
 left: 50%;
 right: -106px;
 width: 36px;
 height: 111px;
 margin: -48px 0 0 480px
}
 
.feedback .fb-item {
 position: absolute;
 width: 36px;
 height: 36px;
 font-size: 14px;
 line-height: 36px;
 color: #fff
}
 
.feedback .fb-item .fb-text {
 display: block;
 position: absolute;
 left: 0;
 top: 1px;
 overflow: hidden;
 width: 36px;
 height: 36px;
 background: #74b3fb;
 text-align: center;
 cursor: pointer
}
 
.feedback .fb-item .fb-ico {
 display: block;
 position: absolute;
 top: 0;
 right: 0;
 width: 36px;
 height: 36px;
 background: #74b3fb url(/img/feedback-sprite.png?_t_=1415611922375) no-repeat;
 _background-image: url(/img/feedback-sprite.gif?_t_=1415611922375);
 cursor: pointer
}
 
.feedback .fb-item a {
 text-decoration: none;
 color: #fff
}
 
.feedback .fb-qq {
 top: 0
}
 
.feedback .fb-qq .fb-ico {
 border-bottom: 1px solid #55a4ff;
 background-position: center 7px
}
 
.feedback .fb-phone {
 top: 37px
}
 
.feedback .fb-phone .fb-text {
 cursor: default
}
 
.feedback .fb-phone .fb-ico {
 border-top: 1px solid #74b3fb;
 border-bottom: 1px solid #55a4ff;
 background-position: center -28px;
 cursor: default
}
 
.feedback .fb-suggestion {
 top: 75px
}
 
.feedback .fb-suggestion .fb-ico {
 border-top: 1px solid #74b3fb;
 background-position: center -62px
}
 
html {
 *overflow-x: hidden
}
</style>