-2
如何更改以下内容?
到工具提示显示颜色名称而不是生成的RGB数字。将工具提示RGB值替换为其颜色名称
<div class="sp-palette-container">
<div class="sp-palette sp-thumb sp-cf">
<div class="sp-cf sp-palette-row sp-palette-row-0">
<span class="sp-thumb-el sp-thumb-dark" data-color="rgb(12, 14, 16)" title="rgb(12, 14, 16)">
<span class="sp-thumb-inner" style="background-color:rgb(12, 14, 16);"></span>
</span>
<span class="sp-thumb-el sp-thumb-light" data-color="rgb(231, 234, 238)" title="rgb(231, 234, 238)">
<span class="sp-thumb-inner" style="background-color:rgb(231, 234, 238);"></span>
</span>
<span class="sp-thumb-el sp-thumb-dark" data-color="rgb(104, 106, 109)" title="rgb(104, 106, 109)">
<span class="sp-thumb-inner" style="background-color:rgb(104, 106, 109);"></span>
</span>
<span class="sp-thumb-el sp-thumb-dark sp-thumb-active" data-color="rgb(208, 14, 0)" title="rgb(208, 14, 0)">
<span class="sp-thumb-inner" style="background-color:rgb(208, 14, 0);"></span>
</span>
<span class="sp-thumb-el sp-thumb-light" data-color="rgb(255, 171, 0)" title="rgb(255, 171, 0)">
<span class="sp-thumb-inner" style="background-color:rgb(255, 171, 0);"></span>
</span>
<span class="sp-thumb-el sp-thumb-dark" data-color="rgb(119, 94, 160)" title="rgb(119, 94, 160)">
<span class="sp-thumb-inner" style="background-color:rgb(119, 94, 160);"></span>
</span>
</div>
<div class="sp-cf sp-palette-row sp-palette-row-selection"></div>
</div>
您的问题中没有任何颜色在css或svg中具有通用名称。 – kennebec
嗨,欢迎来到[so]。请检查小指南[问]并采取[欢迎游览](http://stackoverflow.com/tour)。 – brasofilo