getstyle(back-color) returns differ values across browsers
Posted: Tue Jun 30, 2015 10:56 pm
Hello
I'm trying to get background color of some TdTag to verify against our database.
The above code returns me correct hex value for the color in IE while it returns me RGB values of rgb(255, 255, 255) in chrome and firefox.
However, when I track the td item in developer's tool with chrome/firefox, the style in html is showing up in hex value which is what i need.
I wonder if there's any reason why it returns me rgb value for chrome/firefox. So I don't need to convert them manually according to browsers after getting the value.
Thanks,
Eugene
I'm trying to get background color of some TdTag to verify against our database.
Code: Select all
tdColor.GetStyle("background-color").ToString()
However, when I track the td item in developer's tool with chrome/firefox, the style in html is showing up in hex value which is what i need.
Code: Select all
style=background-color:#6495ED;
Thanks,
Eugene