Con questo codice, ho il colore RGB di qualsiasi TD in mia tabella:Get background-color in formato # 000 e non RGB
alert($(this).css('background-color'));
il risultato è:
rgb (0 , 255, 0)
E 'possibile con jquery ottenere il formato # 000 o devo usare una funzione per trasformare il formato rgb in # 000?
Grazie in anticipo per il vostro aiuto
http://stackoverflow.com/questions/1740700/get-hex-value-rather-than-rgb-value-using-jquery – Eli
Non sono sicuro se questo è ciò che siete dopo ? [Get valore esadecimale invece di valore RGB utilizzando jQuery] [1] [1]: http://stackoverflow.com/questions/1740700/get-hex-value-rather-than- rgb-value-using-jquery – ojhawkins
cos'è jQuery [1] [1]? : O – Jashwant