Non succederà con i CSS solo
Inline javascript
<a href='index.html'
onmouseover='this.style.textDecoration="none"'
onmouseout='this.style.textDecoration="underline"'>
Click Me
</a>
In un working draft of the CSS2 spe c è stato dichiarato che si potrebbe usare pseudo-classi in linea come questo:
<a href="http://www.w3.org/Style/CSS"
style="{color: blue; background: white} /* a+=0 b+=0 c+=0 */
:visited {color: green} /* a+=0 b+=1 c+=0 */
:hover {background: yellow} /* a+=0 b+=1 c+=0 */
:visited:hover {color: purple} /* a+=0 b+=2 c+=0 */
">
</a>
ma non è mai stato implementato nel rilascio delle specifiche per quanto ne so.
http://www.w3.org/TR/2002/WD-css-style-attr-20020515#pseudo-rules
Grazie, ho capito. –
penso che tu possa realizzarlo. in html aggiungi qualcosa come questo –