-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