开发者

how do i specify psedo class attributes inline?

开发者 https://www.devze.com 2023-01-08 01:53 出处:网络
This wiki I\'m using (Google Sites) does not support linking of style sheets or eventags in its HTML mode (It sucks, I know). The only way to specify styles is to define them 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

精彩评论

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