Today, when I used JQuery to get the value of background-color in the style, I found that the format of the obtained color value in IE is different from that displayed in Chrome and Firefox. In IE, it is displayed in HEX format [#ffff00], while in Chrome and Firefox It displays [rgb(255,255,0)] in GRB format, and what I need is a hexadecimal color value for storage in the database. I found the following code on the Internet to solve this problem: