Currently, it seems that Gmail does not support CSS <style> tags or link/visited/active/hover CSS selectors.
However, you can try to model this behavior using JavaScript:
- simulate communication: with the
onMouseOut event in combination with style="color:#XXX;" . - simulate: hover over the
onMouseOver event. - mimic a: active with
onMouseDown event.
eg:.
<a href="http://www.example.com" style="color:#00CCFF;" onMouseOut="this.style.color='#00CCFF'" onMouseOver="this.style.color='#FFFF00'" onMouseDown="this.style.color='#FF0000'">click</a>
You can probably use the click event to set the visited style, but when you reload the page, it will reset and you will need to save it (temporarily) - perhaps by replacing the onMouseOut event handler with the style.color event.
I have not tried this code in Gmail, I will leave it to you :)
source share