源开资源网-专注前端行业精选
广告代码
作者:admin 日期:2025-08-15 22:25:59 浏览:1592 分类:技术教程
哈喽,大家好,今天源开站长请鹏仔喝杯奶茶,定制了此款网站图片广告代码分享给大家,广告代码可自由搭配,一行可设置为1个图、2个图、3个图。
在PC端,鼠标滑过我加了一个抖动效果,图片也加了圆角、还有广告标识。
使用教程
将css代码与HTML代码复制,粘贴到需要展示的位置即可。
推荐尺寸
广告图片高度建议统一、一致即可(如60px、70px最佳);
一行多张的广告图的,建议长、宽尺寸保持一致效果最佳(一张图的1200*60、那么两张图的600*60、三张图的400*60)。
css代码
<style> .tp-img-ads-layer {
width: 100%;
margin: 0 auto;
}
.tp-img-ads-layer a {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
padding: 2px;
box-sizing: border-box;
}
.tp-img-ads-layer a img {
display: block;
width: 100%;
min-height: 40px;
max-height: 80px;
border-radius: 6px;
transition: transform 0.2s ease;
}
.tp-img-ads-layer a:hover img {
animation: tpshake 0.4s infinite;
}
.tp-img-ads-layer a::after {
content: '广告';
display: block;
color: rgba(255,255,255,.5);
font: 600 12px/18px sans-serif;
background: rgba(0,0,0,.3);
border-top-left-radius: 6px;
padding: 3px 6px;
box-sizing: border-box;
position: absolute;
bottom: 2px;
right: 2px;
}
.tp-one-img a, .tp-two-img, .tp-three-img {
width: 100%;
}
.tp-two-img, .tp-three-img {
display: flex;
justify-content: space-between;
}
.tp-two-img a { width: 49.7%; }
.tp-three-img a { width: 33%; }
@keyframes tpshake {
0% { transform: translate(0, 0); }
25% { transform: translate(-2px, 0); }
50% { transform: translate(2px, 0); }
75% { transform: translate(-2px, 0); }
100% { transform: translate(2px, 0); }
}</style>html代码
<div class="tp-img-ads-layer"> <!-- 一行一个长图 --> <div class="tp-one-img"> <a href="#" target="_blank"> <img src="https://www.fzhan.com/logo.png" alt=""> </a> </div> <!-- 一行两个长图 --> <div class="tp-two-img"> <a href="#" target="_blank"> <img src="https://www.fzhan.com/logo.png" alt=""> </a> <a href="#" target="_blank"> <img src="https://www.fzhan.com/logo.png" alt=""> </a> </div> <!-- 一行三个长图 --> <div class="tp-three-img"> <a href="#" target="_blank"> <img src="https://www.fzhan.com/logo.png" alt=""> </a> <a href="#" target="_blank"> <img src="https://www.fzhan.com/logo.png" alt=""> </a> <a href="#" target="_blank"> <img src="https://www.fzhan.com/logo.png" alt=""> </a> </div> </div>
猜你还喜欢
- 09-20 [首发修复版]网站LED灯广告代码源码
- 09-06 业务单页介绍源码
- 08-25 html单页业务介绍源码
- 08-24 最新小红📕解封教程
- 08-16 关于三网如何改8元套餐(联通,电信,移动)
- 08-15 广告代码


已有173位网友发表了看法:
2K电影 评论于 [2025-10-21 05:15:38] 回复
管它三七二十一!https://www.2kdy.com
2K影视 评论于 [2025-10-29 00:09:44] 回复
十分赞同楼主!https://www.2kdy.com
香蕉影视 评论于 [2025-11-02 16:50:45] 回复
看了这么多帖子,第一次看到这么有深度了!https://www.xjtv1.com
香蕉影视 评论于 [2025-11-05 09:33:43] 回复
楼上的说的很多!https://www.xjtv1.com
2K电影 评论于 [2025-11-12 14:16:15] 回复
对牛弹琴的人越来越多了!https://www.2kdy.com
2K影视 评论于 [2025-11-14 02:32:38] 回复
看了这么多帖子,第一次看到这么有深度了!https://www.2kdy.com
2K影视 评论于 [2025-11-17 22:57:10] 回复
这个帖子好无聊啊!https://www.2kdy.com
2K电影网 评论于 [2025-11-19 13:42:09] 回复
太高深了,理解力不够用了!https://www.2kdy.com
2K电影网 评论于 [2025-11-20 13:04:24] 回复
好帖子!https://www.2kdy.com
心理器材 评论于 [2025-11-23 22:18:53] 回复
看了这么多帖子,第一次看到这么高质量内容!https://aptlawfirm.com/
心理设备厂家 评论于 [2025-11-24 08:18:22] 回复
看在楼主的面子上,认真回帖!https://aptlawfirm.com/
365网剧 评论于 [2025-11-24 14:57:46] 回复
收藏了,楼主加油!https://www.365duanju.com
2K影院 评论于 [2025-12-12 09:24:29] 回复
论坛的帖子越来越有深度了!https://www.2kdy.com
quickq电脑版 评论于 [2026-01-14 10:40:14] 回复
这一年啥事没干,光研究楼主的帖子了!https://www.quickq9.com
quickq 评论于 [2026-01-18 00:00:21] 回复
收藏了,改天让朋友看看!https://www.quickq9.com
helloworld 评论于 [2026-03-04 06:55:20] 回复
看帖不回帖的人就是耍流氓,我回复了!https://www.ai-helloworld.it.com
谷歌浏览器 评论于 [2026-03-04 10:51:22] 回复
这里的资源非常丰富,帮助我解决了很多问题。https://win-google.com.cn
helloworld下载 评论于 [2026-03-04 21:26:00] 回复
楼主的文笔不错!https://www.me-helloworlds.com
WPS 评论于 [2026-03-05 03:07:02] 回复
东方不败外加灭绝师太啊!https://p-wps.it.com
快连VPN下载 评论于 [2026-03-05 05:29:52] 回复
怪事年年有,今年特别多!https://www.kuailian-cn.it.com
谷歌浏览器官网 评论于 [2026-03-05 06:47:06] 回复
楼主是我最崇拜的人!https://www.chrome-web.it.com
快连VPN 评论于 [2026-03-05 08:56:18] 回复
最近回了很多帖子,都没人理我!https://web-kuailian.it.com
wps下载 评论于 [2026-03-05 12:56:01] 回复
林子大了,什么鸟都有了啊!https://wps-cc.cn
谷歌浏览器下载 评论于 [2026-03-05 18:13:45] 回复
无图无真相!https://win-google.com.cn
快连VPN官网 评论于 [2026-03-05 20:16:30] 回复
楼主是一个神奇的青年!https://www.kuailian-web.it.com
快连VPN 评论于 [2026-03-06 04:16:12] 回复
楼主是在找骂么?https://web-kuailian.it.com
helloworld官网 评论于 [2026-03-06 05:42:31] 回复
楼主英明!https://www.cc-helloworlds.it.com
快连VPN下载 评论于 [2026-03-07 18:40:39] 回复
管它三七二十一!https://web-kuailian.it.com
helloworld下载 评论于 [2026-03-08 01:09:22] 回复
楼主写的很经典!https://on-helloworlds.cn
helloworld下载 评论于 [2026-03-08 18:09:01] 回复
这篇文章真是让人受益匪浅!https://org-helloworld.net
WPS官网 评论于 [2026-03-09 00:16:13] 回复
信楼主,得永生!https://www.w-wps.it.com
WPS下载 评论于 [2026-03-09 04:06:39] 回复
很有品味!https://www.office-wps.it.com
helloworld官网 评论于 [2026-03-09 06:24:39] 回复
祖国尚未统一,我却天天灌水,好内疚!https://org-helloworld.cn
wps下载 评论于 [2026-03-09 10:21:41] 回复
有机会找楼主好好聊聊!https://www.me-wps.cn
谷歌浏览器下载 评论于 [2026-03-10 01:55:15] 回复
回帖也有有水平的!https://d-google.com
wps官网下载 评论于 [2026-03-10 16:03:55] 回复
林子大了,什么鸟都有了啊!https://www.web-wps.it.com
快连VPN下载 评论于 [2026-03-10 21:03:30] 回复
这个帖子会火的,鉴定完毕!https://www.kuailian-cn.it.com
wps下载 评论于 [2026-03-11 03:04:22] 回复
今天的心情很不错啊https://go-wps.it.com
快连VPN官网 评论于 [2026-03-12 05:45:05] 回复
信楼主,考试不挂科!https://kuailian-pc.it.com
wps下载 评论于 [2026-03-12 06:24:10] 回复
观点鲜明,立场坚定,作者态度明确。https://in-wps.com
helloworld下载 评论于 [2026-03-13 03:55:10] 回复
顶!顶!顶!https://ai-helloworlds.com
wps下载 评论于 [2026-03-13 04:37:12] 回复
楼主写的很经典!https://www.co-wps.cn
快连VPN下载 评论于 [2026-03-13 21:04:05] 回复
谢谢楼主的分享!https://web-kuailian.it.com
wps官网 评论于 [2026-03-14 17:46:07] 回复
顶一下,收藏了!https://pcs-wps.com.cn
快连VPN 评论于 [2026-03-15 00:13:32] 回复
顶!顶!顶!https://kuailian-pc.it.com
wps下载 评论于 [2026-03-15 02:56:51] 回复
看帖不回帖都是耍流氓!https://www.to-wps.net
谷歌浏览器下载 评论于 [2026-03-15 08:56:34] 回复
今天的心情很不错啊https://chrome-web.it.com
wps 评论于 [2026-03-16 21:26:32] 回复
好东西,学习学习!https://cn-wps.cn
快连VPN下载 评论于 [2026-03-17 13:41:38] 回复
楼上的心情不错啊!https://web-kuailian.it.com
helloworld官网下载 评论于 [2026-03-18 13:07:09] 回复
楼上的能详细介绍一下么?https://www.ai-helloworld.cn
WPS下载 评论于 [2026-03-18 14:15:25] 回复
论坛的帖子越来越有深度了!https://p-wps.it.com
wps下载 评论于 [2026-03-18 17:12:54] 回复
勤奋灌水,天天向上!https://go-wps.it.com
WPS下载 评论于 [2026-03-19 00:08:56] 回复
我对楼主的敬仰犹如滔滔江水绵延不绝!https://office-wps.it.com
WPS 评论于 [2026-03-19 04:30:40] 回复
不灌水就活不下去了啊!https://win-wps.it.com
WPS下载 评论于 [2026-03-19 13:15:12] 回复
我裤子脱了,纸都准备好了,你就给我看这个?https://www.w-wps.it.com
有道翻译 评论于 [2026-03-19 21:10:38] 回复
看帖、回帖、拿分、走人https://fanyi-youdao.it.com
helloworld官网下载 评论于 [2026-03-19 22:08:06] 回复
怎么我回帖都没人理我呢?https://org-helloworld.cn
谷歌浏览器 评论于 [2026-03-20 02:40:42] 回复
楼主的头像是本人吗?https://chrome-web.it.com
helloworld官网下载 评论于 [2026-03-20 13:22:26] 回复
楼主很有激情啊!https://www.co-helloworld.net
谷歌浏览器官网 评论于 [2026-03-20 14:28:51] 回复
文章写太挺好了,真的值得推荐https://www.win-google.com.cn
快连VPN官网 评论于 [2026-03-21 08:37:28] 回复
楼主该去看心理医生了!https://kuailian-pc.it.com
WPS官网 评论于 [2026-03-22 05:42:08] 回复
世界末日我都挺过去了,看到楼主我才知道为什么上帝留我到现在!https://win-wps.it.com
helloworld官网 评论于 [2026-03-22 16:24:53] 回复
楼主的文笔不错!https://app-helloworlds.cn
WPS 评论于 [2026-03-23 02:01:20] 回复
东方不败还是灭绝师太啊?https://www-wps-cn.com
helloworld官网 评论于 [2026-03-23 02:06:41] 回复
我只是来赚积分的!https://www.pc-helloworlds.net
搜狗输入法 评论于 [2026-03-23 09:04:06] 回复
楼主的头像是本人吗?https://im-sogou.com
有道翻译 评论于 [2026-03-23 12:35:47] 回复
写得实在太好了,我唯一能做的就是默默顶贴!https://i-youdao.com.cn
搜狗输入法 评论于 [2026-03-23 16:11:11] 回复
我和我的小伙伴都惊呆了!https://im-sogou.com
有道翻译在线 评论于 [2026-03-24 00:37:24] 回复
精华帖的节奏啊!https://i-youdao.com.cn
helloworld官网下载 评论于 [2026-03-24 03:44:43] 回复
学习雷锋,好好回帖!https://www.top-helloworld.com
搜狗输入法下载 评论于 [2026-03-24 05:48:22] 回复
楼主看起来很有学问!https://im-sogou.com
WPS 评论于 [2026-03-24 06:29:27] 回复
今天怎么了,什么人都出来了!https://www.office-wps.it.com
有道翻译下载 评论于 [2026-03-24 07:34:18] 回复
鸟大了,什么林子都敢进啊!https://i-youdao.com.cn
wps下载 评论于 [2026-03-24 07:38:06] 回复
大神好强大!https://www-wps-cn.com
wps下载 评论于 [2026-03-24 20:17:19] 回复
被楼主的逻辑打败了!https://www-wps-cn.com
wps下载 评论于 [2026-03-25 01:36:36] 回复
楼主就是我的榜样哦https://www-wps-cn.com
有道翻译官网 评论于 [2026-03-25 06:09:25] 回复
看在楼主的面子上,认真回帖!https://i-youdao.com.cn
WPS官网 评论于 [2026-03-26 09:26:40] 回复
强,我和我的小伙伴们都惊呆了!https://w-wps.it.com
helloworld 评论于 [2026-03-26 16:16:21] 回复
太邪乎了吧?https://cn-helloworld.org
有道翻译在线 评论于 [2026-03-26 17:20:32] 回复
论坛的人气越来越旺了!https://i-youdao.com.cn
WPS 评论于 [2026-03-26 23:10:37] 回复
刚分手,心情不好!https://www.p-wps.it.com
有道翻译 评论于 [2026-03-27 18:15:07] 回复
我和我的小伙伴都惊呆了!https://i-youdao.com.cn
trx能量租赁 评论于 [2026-04-11 06:57:32] 回复
u转错省能量地址 【 TJYzYmzufj6hay1kUETf9oo5LAA6gggggg 】转错请联系TG:@TrxEm
trx能量租赁 评论于 [2026-04-11 16:13:12] 回复
u地址转错怎么办 【 TWoDRt5FPq9myBmZLM5urBSeTkx3FBPEVv 】转错请联系TG:@TrxEm
trx能量租赁 评论于 [2026-04-12 05:12:03] 回复
转错usdt 【 TEPhA6ozV35DASiRWnAPoqpae4kpGn5AFg 】转错请联系TG:@TrxEm
节省TRX手续费 评论于 [2026-04-12 10:50:33] 回复
usdt转错帐如何追回 【 THHaz364nnPcZAQvmFJHiSVUM5VmKt6t1d 】转错请联系TG:@TrxEm
波场能量租赁 评论于 [2026-04-12 12:31:12] 回复
u转错地址怎么找回 【 TGzDjd9sFGyDYP8Y1hgMtwweJhkJxfU8ix 】转错请联系TG:@TrxEm
trx能量租赁 评论于 [2026-04-13 19:16:12] 回复
trx能量转错 【 TD1FycVdpQGcuiGycyMmLNwPcj37DLFjPZ 】转错请联系TG:@TrxEm
trx能量租赁 评论于 [2026-04-14 09:53:49] 回复
转trx能量转错u怎么办 【 TCPAeJnWAaKVXyQFjid276ZVDHmoezVR96 】转错请联系TG:@TrxEm
trx能量机器人 评论于 [2026-04-14 15:22:42] 回复
转trx能量转错u怎么办 【 TTLvAVAWkvrudHoSaPvXbLS6VJrBaUqCXc 】转错请联系TG:@TrxEm
trx能量机器人 评论于 [2026-04-16 12:38:56] 回复
u地址转错 【 TYmzaYV7t1xRFE7Ayh22dV9y2h88888888 】转错请联系TG:@TrxEm
波场能量租赁 评论于 [2026-04-16 20:51:52] 回复
u地址转错 【 TL3EzTYSBKgbhuUQsK3nz5KJve63mQuRcp 】转错请联系TG:@TrxEm
波场能量租赁 评论于 [2026-04-17 16:41:49] 回复
u地址转错 【 TWY3Hz5sHdBE9uHpJyKioYVcLcPRxjJAck 】转错请联系TG:@TrxEm
波场能量租赁 评论于 [2026-04-18 22:45:53] 回复
u地址转错 【 TE3BBq1Rf7KueRbV1x1C9i8pSooooooooo 】转错请联系TG:@TrxEm
出售账号 评论于 [2026-04-19 03:53:53] 回复
【微信】【QQ】【抖音】【小红书】【支付宝】【快手】【闲鱼】 信誉号商小店地址【https://vvx1.com/ac/w4a6】客服:@xinyu1915
波场能量租赁 评论于 [2026-04-19 06:49:52] 回复
u地址转错 【 TTnZL4PRUseBakTP1MLDf6rjSr59bcBtML 】转错请联系TG:@TrxEm
节省TRX手续费 评论于 [2026-04-20 16:45:42] 回复
u地址转错 【 TSNXpR3Xfsy9**eFjHdHvJJwYxeJEW3DGg 】转错请联系TG:@TrxEm
trx能量租赁 评论于 [2026-04-22 05:30:48] 回复
u地址转错 【 TRSxovBJF2m5qhF4hUrH7B71j2Qf7Rtd3N 】转错请联系TG:@TrxEm
trx能量租赁 评论于 [2026-04-23 10:29:42] 回复
u地址转错 【 TZ8gpZyWxuxuXP1mRZ8xv7etBcjZrqdzxY 】转错请联系TG:@TrxEm
波场能量租赁 评论于 [2026-04-23 14:14:41] 回复
u地址转错 【 TAZFr3b2y2PhqCWL1MUd41yWUyn1D5AQYw 】转错请联系TG:@TrxEm