开发者

how do i specify psedo class attributes inline?

This wiki I'm using (Google Sites) does not support linking of style sheets or even tags in its HTML mode (It sucks, I know). The only way to specify styles is to define them inline.

I need to put a menu bar now. I've figured out a pure css menubar, but I'm having tr开发者_开发技巧ouble defining the hover class inline. Any ideas?


Pseudo-class attributes are not well supported for inline styles, but you can use Javascript, such as

<a href="page.html" style="color: red;" onmouseover="this.style.color = 'blue'" onmouseout="this.style.color = 'red'">Link</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜