找回密码
 立即注册
点击图片立即观看
搜索
查看: 34|回复: 0

彩虹色彩文字的代码

[复制链接]
发表于 2026-9-6 18:34:30 |北京| 显示全部楼层 |阅读模式
外建css方法:
  1. <style>
  2. .chtext {
  3.         font-weight: bold;
  4.         text-decoration: none;
  5.         background: linear-gradient(to right, #ff3333, #ff9900, #ffdd00, #33cc33, #0099ff, #9933ff);
  6.         -webkit-background-clip: text;
  7.         color: transparent;
  8.         font-size: 32px;
  9. }
  10. </style>
  11. <p class="chtext">彩虹色彩文字的代码</p>
复制代码

内建HTML方法:
  1. <p style="font-weight:bold; text-decoration:none; background:linear-gradient(to right, #ff3333, #ff9900, #ffdd00, #33cc33, #0099ff, #9933ff); -webkit-background-clip:text; color:transparent; font-size:32px;">彩虹色彩文字的代码</p>
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|B.K 网络工作室

GMT+8, 2026-9-14 20:06 , Processed in 0.030332 second(s), 16 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表