/* 蓝色字体 */ .chat-input { color: rgb(0, 0, 255) !important; }
/* 渐变效果 */ .chat-input { background: linear-gradient(90deg, #ff0000, #00ff00); -webkit-background-clip: text; color: transparent !important; } ```
四、保存自定义样式 1. 右键点击Styles面板样式 2. 选择本地覆盖功能 3. 指定保存路径成持久化 五、进阶应用 通过用户脚本管理器入自定义JS: ```javascript setInterval(()=>{ document.querySelector('.chat-input').style.color = `hsl(${Math.random()*360}, 100%, 50%)`; }, 1000); ```:不同版本YY界面元素类名可能存在差异,通过元素检查工具实时定位最新选择器。修改系统文件可能导致客户端异常,使用官方提供的主题自定义功能优先配置。
