一贝皇城单品文字上下浮动外框旋转 | 墨兮风电商博客 — 做专业的电商个人博客

收集分享
电商最优秀的资源


一贝皇城单品文字上下浮动外框旋转

以下代码需开通CSS权限才可以使用,<style></style>以内代码复制到店铺CSS框内点击保存。html代码复制到自定义内容区内即可。代码都经过测试使用,所以几乎不存在使用不了的情况。【如代码预览没有效果请发布以后再浏览】

部分代码含有淘宝class="J_TWidget"功能,如果需要在本地浏览代码效果在代码最开头加上如下代码:
<script src="http://a.tbcdn.cn/apps/pamirsshop/wiki/scripts/prettify.js" type="text/javascript"></script>
<script src="http://a.tbcdn.cn/s/kissy/1.1.6/kissy.js"></script>
<script src="http://a.tbcdn.cn/p/shop/1.0/mods/s/countdown/countdown-min.js"></script>
<script src="http://a.tbcdn.cn/apps/pamirsshop/wiki/scripts/jquery-min-1.4.js"></script>
<script src="http://a.tbcdn.cn/apps/pamirsshop/wiki/scripts/wiki.js"></script>
<script>
KISSY.ready(function(S){
S.Countdown.autoRender();
});
</script>

兮风QQ:2802813994。微信号:jiyaoshijue(或扫右边二维码)如有疑问欢迎加我谈论。


代码版权归原创者所有,本文仅用作参考,本论坛不承担任何责任。

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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
.eb_2015_qiuji_hot {
    width: 1120px;
    height: auto;
    padding: 0;
    margin: 0 0 0 -55px;
    position: relative
}
.eb_2015_qiuji_hot a {
    color: #f5d5ac;
    display: block;
    width: 100%;
    height: 100%
}
.eb_2015_qiuji_hot span {
    display: block
}
.eb_2015_qiuji_hot .bigbanner {
    position: relative;
    float: left;
    overflow: hidden;
}
.eb_2015_qiuji_hot .bigbanner .gwc {
    width: 73px;
    height: 73px;
    background: url(http://img04.taobaocdn.com/imgextra/i4/698767861/TB2RDNdaVXXXXbVXpXXXXXXXXXX_!!698767861.png);
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5
}
.eb_2015_qiuji_hot .cp {
    width: 353px;
    height: 460px;
    float: left;
    position: relative;
    overflow: hidden;
    margin: 20px 20px 0 0;
    font: 900 14px tahoma, 微软雅黑;
    background: #000;
}
.eb_2015_qiuji_hot .cp .bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 353px;
    height: 460px;
    background: url(http://img03.taobaocdn.com/imgextra/i3/698767861/TB22HlpaVXXXXX_XXXXXXXXXXXX_!!698767861.png);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    opacity: 0;
    transition: all 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
}
.eb_2015_qiuji_hot .cp .text {
    position: absolute;
    top: -150px;
    left: 40px;
    font-size: 18px;
    transition: all 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    z-index: 1
}
.eb_2015_qiuji_hot .cp .text2 {
    position: absolute;
    top: -130px;
    left: 40px;
    text-transform: uppercase;
    transition: all 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    z-index: 1;
    font-weight: 100
}
.eb_2015_qiuji_hot .cp .xux {
    position: absolute;
    width: 290px;
    height: 1px;
    background: #f5d5ac;
    top: -120px;
    left: 30px;
    transition: all 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    z-index: 1
}
.eb_2015_qiuji_hot .cp del {
    position: absolute;
    top: -95px;
    left: 40px;
    transition: all 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    z-index: 1;
    text-decoration: none
}
.eb_2015_qiuji_hot .cp .jg {
    position: absolute;
    bottom: 72px;
    left: -240px;
    font-size: 18px;
    color: #f4a815;
    transition: all 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    z-index: 1;
    text-decoration: none
}
.eb_2015_qiuji_hot .cp .gwc {
    width: 73px;
    height: 73px;
    background: url(http://img04.taobaocdn.com/imgextra/i4/698767861/TB2RDNdaVXXXXbVXpXXXXXXXXXX_!!698767861.png);
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5
}
.eb_2015_qiuji_hot .cp .jhsbq {
    background: url(http://img01.taobaocdn.com/imgextra/i1/698767861/TB2r0xqaVXXXXXzXXXXXXXXXXXX_!!698767861.png);
    width: 82px;
    height: 40px;
    position: absolute;
    left: 16px;
    top: 17px
}
.eb_2015_qiuji_hot .cp:hover .bg {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100);
    opacity: 1;
}
.eb_2015_qiuji_hot .cp:hover .text {
    top: 290px;
    transition: all 1s;
    transition-duration: 1s;
    -webkit-transition-duration: 1s;
}
.eb_2015_qiuji_hot .cp:hover .text2 {
    top: 315px;
    transition: all 0.8s;
    transition-duration: 0.8s;
    -webkit-transition-duration: 0.8s;
}
.eb_2015_qiuji_hot .cp:hover .xux {
    top: 340px;
    transition: all 0.6s;
    transition-duration: 0.6s;
    -webkit-transition-duration: 0.6s;
}
.eb_2015_qiuji_hot .cp:hover del {
    top: 345px;
}
.eb_2015_qiuji_hot .cp:hover .jg {
    left: 40px;
}
.eb_2015_qiuji_hot .x_border {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 10px;
    border: 1px solid #f8dcb8;
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80);
    opacity: 0.8;
    z-index: 3
}
.eb_2015_qiuji_hot .x_top, .eb_2015_qiuji_hot .x_bottom, .eb_2015_qiuji_hot .x_left, .eb_2015_qiuji_hot .x_right {
    position: absolute;
    width: 11px;
    height: 11px;
    background: #f8dcb8;
    transition: all 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    z-index: 3
}
.eb_2015_qiuji_hot .x_top {
    top: 0;
    left: -100%;
    width: 100%;
}
.eb_2015_qiuji_hot .x_bottom {
    bottom: 0;
    right: -100%;
    width: 100%;
}
.eb_2015_qiuji_hot .x_left {
    bottom: -100%;
    left: 0;
    height: 100%;
}
.eb_2015_qiuji_hot .x_right {
    top: -100%;
    right: 0;
    height: 100%;
}
.eb_2015_qiuji_hot a:hover .x_top {
    top: 0;
    left: 0;
    width: 100%;
}
.eb_2015_qiuji_hot a:hover .x_bottom {
    bottom: 0;
    right: 0;
    width: 100%;
}
.eb_2015_qiuji_hot a:hover .x_left {
    bottom: 0;
    left: 0;
    height: 100%;
}
.eb_2015_qiuji_hot a:hover .x_right {
    top: 0;
    right: 0;
    height: 100%;
}
.eb_2015_qiuji_hot .cp .ewm {
    width: 73px;
    height: 73px;
    background: #fff;
    transition: all 1s;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    display: none;
    position: absolute;
    top: 15px;
    right: -150px;
    z-index: 1;
}
.eb_2015_qiuji_hot .cp .ewm img {
    width: 74px;
    height: 74px;
    display: none;
}
.eb_2015_qiuji_hot .cp:hover .ewm {
    right: 15px;
}
.kuzihaib_2015 {
    width: 1100px;
    height: 460px;
    margin-left: -55px;
    margin-top: 20px;
    padding: 0;
    background: url(https://img.alicdn.com/imgextra/i4/698767861/TB2EoAwdVXXXXayXXXXXXXXXXXX_!!698767861.jpg);
    position: relative;
    overflow: hidden
}
.kuzihaib_2015 a {
    display: block;
    width: 100%;
    height: 100%
}
.kuzihaib_2015 a .img1 {
    position: absolute;
    left: 550px;
    z-index: 4;
    transition: all 1s;
    transition-duration: 0.7s;
    -webkit-transition-duration: 0.7s
}
.kuzihaib_2015 a .img2 {
    position: absolute;
    left: 1300px;
    z-index: 3;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    opacity: 0;
    transition: all 1s;
    transition-duration: 0.7s;
    -webkit-transition-duration: 0.7s
}
.kuzihaib_2015 a:hover .img1 {
    left: 680px;
}
.kuzihaib_2015 a:hover .img2 {
    left: 420px;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
    opacity: 1;
}
</style>

<div class="eb_2015_qiuji_hot">
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.vau16p&amp;id=40865295756&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i4/698767861/TB2fqZydVXXXXXjXXXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=40865295756" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">新格调条纹系列</span> <span class="text2">贵族范儿POLO衫</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:75.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span><span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.tg5cze&amp;id=40848290124&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i3/698767861/TB2rNT9dVXXXXcqXpXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=40848290124" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">休闲自然系外套</span> <span class="text2">穿出清晰男神范</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:119.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.8AuigH&amp;id=37143909256&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i3/698767861/TB2MJcfdVXXXXadXpXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=37143909256" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">花卉图案拼接</span> <span class="text2">焕发贵族气质</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:79.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.FZfCDO&amp;id=40847902950&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i3/698767861/TB2wDcjdVXXXXcOXXXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=40847902950" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">别样贵族气息</span> <span class="text2">贵族范POLO衫</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:69.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.lDcISr&amp;id=41677603739&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i3/698767861/TB2FlgxdVXXXXXPXXXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=41677603739" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">时尚买手推荐</span> <span class="text2">T恤+长裤套装</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:129.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.e35fwR&amp;id=41178174267&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i3/698767861/TB2DEIodVXXXXbiXXXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=41178174267" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">波点印花设计</span> <span class="text2">经典不失时尚</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:49.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.e35fwR&amp;id=41178174267&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i3/698767861/TB2I6wpdVXXXXbjXXXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=41178174267" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">时尚连帽设计</span> <span class="text2">贵族运动系列</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:89.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.e35fwR&amp;id=41178174267&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i1/698767861/TB2uPH4dVXXXXcEXpXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=41178174267" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">个性迷彩拼接</span> <span class="text2">运动范卫衣套装</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:129.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
  <div class="cp"> <a href="http://detail.tmall.com/item.htm?spm=0.0.0.0.e35fwR&amp;id=41178174267&amp;scene=taobao_shop" target="_blank"> <img src="https://img.alicdn.com/imgextra/i3/698767861/TB2UrogdVXXXXXEXpXXXXXXXXXX_!!698767861.jpg" /> <span class="ewm"> <img src="http://gqrcode.alicdn.com/img?v=1&amp;type=bi&amp;item_id=41178174267" /> </span> <span class="gwc">&nbsp;</span><span class="jhsbq">&nbsp;</span> <span class="text">贵族范刺绣工艺</span> <span class="text2">休闲外套</span> <del>推荐指数:★★★★★</del> <span class="jg">聚划算:79.00</span> <span class="xux">&nbsp;</span> <span class="gwc J_CartPluginTrigger">&nbsp;</span> <span class="bg">&nbsp;</span> <span class="x_border">&nbsp;</span> <span class="x_top">&nbsp;</span> <span class="x_bottom">&nbsp;</span> <span class="x_left">&nbsp;</span> <span class="x_right">&nbsp;</span> </a> </div>
</div>
<div class="kuzihaib_2015"> <a href="#"> <span class="img1"><img src="https://img.alicdn.com/imgextra/i4/698767861/TB2OSovdVXXXXaWXXXXXXXXXXXX_!!698767861.png" alt=" 1"/></span> <span class="img2"><img src="https://img.alicdn.com/imgextra/i3/698767861/TB2l.wadVXXXXbpXpXXXXXXXXXX_!!698767861.png" alt=" 2"/></span> </a> </div>

本章转自互联网,如有冒犯请联系版主修正 兮风电商博客 » 一贝皇城单品文字上下浮动外框旋转




喜欢 16

一条回应:“一贝皇城单品文字上下浮动外框旋转”

  1. 小希希说道:

    嗯很有用 直接有代码可以直接用 谢谢楼主

发表评论

电子邮件地址不会被公开。 必填项已用*标注

最新文章

  • 去评论
  • 去顶部