man*_*ack 12 html css html5 css3
<a href="#">Alink</a>
Run Code Online (Sandbox Code Playgroud)
所有我需要的是当我悬停颜色应该改变链接,但它应该完全使用内联CSS
*没有脚本或外部CSS
请帮我解决这个问题.
dav*_*rey 31
只有CSS才会发生
内联javascript
<a href='index.html'
onmouseover='this.style.textDecoration="none"'
onmouseout='this.style.textDecoration="underline"'>
Click Me
</a>
Run Code Online (Sandbox Code Playgroud)
<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>
Run Code Online (Sandbox Code Playgroud)
但据我所知,它从未在规范发布中实施.
http://www.w3.org/TR/2002/WD-css-style-attr-20020515#pseudo-rules