Firefox stop displaying inline colors in rgb () form

I am trying to write a JavaScript tool to work with elements of a certain color. On the test page, I set the color using the inline style to simulate the landing pages, but when the page is displayed, the color is specified using the CSS rgb () function.

HTML is trying to emulate the GMail container. I want to change the background color. When I test an item in Firebug, the color is displayed as rgb ().

<div style="width: 100%; height: 30px; border: 1px solid black; 
    background: #6694E3 none repeat scroll 0 0;">    
</div>

How can I stop the color conversion from #6694E3to rgb(102, 148, 227)?

+3
source share
3 answers

Check this script to convert rgb () notation to hex.

+3
source

, . , rgb, . , css, DOM, , - .

+1

You are probably looking at the value through firebug, which converts all colors to RGB in the console. This does not mean that it has changed in the DOM.

0
source

Source: https://habr.com/ru/post/1727011/


All Articles