一款自适应网站文字广告位HTML代码

名片

墨觉 已认证

联系方式

私信或下方留言

热度

  • 预计价格:暂无
  • 状态: 已完成

代码介绍:

一款非常漂亮的HTML自适应广告位

界面预览:

一款自适应网站文字广告位HTML代码

  1. <style type="text/css">
  2. .tp-ad-text1 {width:100%;padding-top:6px;box-sizing:border-box;overflow: hidden;background: rgba(255,255,255,.2);}
  3. .tp-ad-text1 a {color:#7fba00;font-size:14px;line-height:38px;text-align:center;border:1px dashed rgba(0,0,0,.2);padding:0 3px;box-sizing:border-box;float:left;width:11.5%;height:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0.5% 6px;text-decoration:none;transition:all .6s;}
  4. .tp-ad-text1 a:hover {font-weight: bold;color:#fff!important;background:#7fba00;transition: all .6s;}
  5. .tp-ad-text1 a:nth-child(2n) {color:#f74e1e;}
  6. .tp-ad-text1 a:nth-child(2n):hover {background:#f74e1e;border-color: #f74e1e;}
  7. .tp-ad-text1 a:nth-child(3n) {color:#00a4ef;}
  8. .tp-ad-text1 a:nth-child(3n):hover {background:#00a4ef;border-color: #00a4ef;}
  9. .tp-ad-text1 a:nth-child(4n) {color:#0517c2;}
  10. .tp-ad-text1 a:nth-child(4n):hover {background:#0517c2;border-color: #0517c2;}
  11. .tp-ad-text1 a:nth-child(5n) {color:#601165;}
  12. .tp-ad-text1 a:nth-child(5n):hover {background:#601165;border-color: #601165;}
  13. .tp-ad-text1 a:nth-child(6n) {color:#ffb900;}
  14. .tp-ad-text1 a:nth-child(6n):hover {background:#ffb900;border-color: #ffb900;}
  15. .tp-ad-text1 a:nth-child(7n) {color:#0fc317;}
  16. .tp-ad-text1 a:nth-child(7n):hover {background:#0fc317;border-color: #0fc317;}
  17. .tp-ad-text1 a:nth-child(8n) {color:#601165;}
  18. .tp-ad-text1 a:nth-child(8n):hover {background:#601165;border-color: #601165;}
  19. .tp-ad-text1 a:nth-child(9n) {color:#fba78f;}
  20. .tp-ad-text1 a:nth-child(9n):hover {background:#fba78f;border-color: #fba78f;}
  21. .tp-ad-text1 a:nth-child(10n) {color:#13cf8f;}
  22. .tp-ad-text1 a:nth-child(10n):hover {background:#13cf8f;border-color: #13cf8f;}
  23. .tp-ad-text1 a:nth-child(11n) {color:#f74e1e;}
  24. .tp-ad-text1 a:nth-child(11n):hover {background:#f74e1e;border-color: #f74e1e;}
  25. .tp-ad-text1 a:nth-child(12n) {color:#ffb900;}
  26. .tp-ad-text1 a:nth-child(12n):hover {background:#ffb900;border-color: #ffb900;}
  27. .tp-ad-text1 a:nth-child(13n) {color:#fba78f;}
  28. .tp-ad-text1 a:nth-child(13n):hover {background:#fba78f;border-color: #fba78f;}
  29. .tp-ad-text1 a:nth-child(14n) {color:#f74e1e;}
  30. .tp-ad-text1 a:nth-child(14n):hover {background:#f74e1e;border-color: #f74e1e;}
  31. .tp-ad-text1 a:nth-child(15n) {color:#7fba00;}
  32. .tp-ad-text1 a:nth-child(15n):hover {background:#7fba00;border-color: #7fba00;}
  33. .tp-ad-text1 a:nth-child(16n) {color:#0fc317;}
  34. .tp-ad-text1 a:nth-child(16n):hover {background:#0fc317;border-color: #0fc317;}
  35. .tp-ad-text1 a:nth-child(17n) {color:#0517c2;}
  36. .tp-ad-text1 a:nth-child(17n):hover {background:#0517c2;border-color: #0517c2;}
  37. .tp-ad-text1 a:nth-child(18n) {color:#13cf8f;}
  38. .tp-ad-text1 a:nth-child(18n):hover {background:#13cf8f;border-color: #13cf8f;}
  39. .tp-ad-text1 a:nth-child(19n) {color:#ffb900;}
  40. .tp-ad-text1 a:nth-child(19n):hover {background:#ffb900;border-color: #ffb900;}
  41. .tp-ad-text1 a:nth-child(20n) {color:#f74e1e;}
  42. .tp-ad-text1 a:nth-child(20n):hover {background:#f74e1e;border-color: #f74e1e;}
  43. @media screen and (max-width: 1198px){
  44. .tp-ad-text1 a{
  45. width: 24%;
  46. }
  47. }
  48. </style>
  49. <div class="tp-ad-text1">
  50. <a href="http://blog.hzyo.cn" title="平凡博客" target="_blank">平凡博客</a>
  51. <a href="http://blog.hzyo.cn" title="<a href="http://blog.hzyo.cn/" title="更多关于 广告位" target="_blank">广告位</a>
  52. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  53. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  54. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  55. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  56. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  57. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  58. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  59. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank" title="同款网站搭建" target="_blank">同款网站搭建</a>
  60. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  61. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  62. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  63. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  64. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  65. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  66. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  67. <a href="http://blog.hzyo.cn" title="同款网站搭建" target="_blank">同款网站搭建</a>
  68. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  69. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  70. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  71. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  72. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  73. <a href="http://blog.hzyo.cn" title="广告位/10/月" target="_blank">广告位/10/月</a>
  74. </div>
一键复制
0 条回复 A文章作者 M管理员
欢迎您,新朋友,感谢参与互动!
😊 表情
  • 贴吧
  • 泡泡
  • 黄脸
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
私信列表
搜索
  • 墨觉发布圈子五一计划
  • 纵**下成功下载了朋友圈访客记录系统h5网站源码2025变现神器超好资源!
  • 墨觉发布圈子五一计划