最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

text - Custom color does not stick

programmeradmin0浏览0评论

I use a custom color for certain words on my web site. Every time want to use that color I need to click the Text Color icon and Customize... I then type in the RGB. Problem: It doesn't save that number or hex code. I have to type it in every session. Is there a way to save that custom color from one session to the next? Thank you.

I use a custom color for certain words on my web site. Every time want to use that color I need to click the Text Color icon and Customize... I then type in the RGB. Problem: It doesn't save that number or hex code. I have to type it in every session. Is there a way to save that custom color from one session to the next? Thank you.

Share Improve this question asked Dec 21, 2017 at 19:21 LouieLouie 194 bronze badges 1
  • 1 Try this stackoverflow/a/23183406/4156379 – Shibi Commented Dec 21, 2017 at 19:27
Add a comment  | 

2 Answers 2

Reset to default 2

To shorten your search the article points out that the suggested code is old and that you can now use this plug-in to define custom colors: Central Color Palette

if you are using the same color every time then add a piece of css to your site

ie

.keyword{color:#11c8de;}

then span your special word with <span class="keyword">YOUR SPECIAL WORD</span>

this offeres more flexibility if you want to change the color in the future all you change is your css and not every single word.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论