: [jQuery] Re: Question about jQuery + CSS
You can access the stylesheet object using JavaScript. However, each browser
represents CSS rules differently. There is no cross-browser way to
access/manipulate the rules. I *had* to manipulate the stylesheet object in
Safari to avoid the a:hover
You can access the stylesheet object using JavaScript. However, each browser
represents CSS rules differently. There is no cross-browser way to
access/manipulate the rules. I *had* to manipulate the stylesheet object in
Safari to avoid the a:hover over swf bug... but even Safari represented the
ru
Klaus Hartl wrote:
howard chen schrieb:
sorry, a:hover is just an example, what i want is to style pseudo
class, such as a:visited, a:active etc
There are no properties in JavaScript that represent these pseudo
classes, thus it cannot be done.
However, as long as what you want is not
howard chen schrieb:
sorry, a:hover is just an example, what i want is to style pseudo
class, such as a:visited, a:active etc
There are no properties in JavaScript that represent these pseudo
classes, thus it cannot be done.
-- Klaus
You could change stylesheets onmouseover.
On Apr 18, 4:28 pm, "howard chen" <[EMAIL PROTECTED]> wrote:
> sorry, a:hover is just an example, what i want is to style pseudo
> class, such as a:visited, a:active etc
>
> >>Try
> >>jQuery("a").mouseover( function() { $(this).css("fontSize",
> >>"20
sorry, a:hover is just an example, what i want is to style pseudo
class, such as a:visited, a:active etc
Try
jQuery("a").mouseover( function() { $(this).css("fontSize",
"20px"); } );
Oh wait, disregard my previous attempt. It doesn't remove the css
onmouseout. Try this instead:
jQuery("a").hover(function(){
$(this).css("fontSize","20px");
},function(){
$(this).css("fontSize", "");
});
On Apr 18, 2:35 pm, "howard chen" <[EMAIL PROTECTED]> wrote:
> hody
>
> 1. How to s
Try
jQuery("a").mouseover( function() { $(this).css("fontSize",
"20px"); } );
howard chen wrote:
> hody
>
> 1. How to set the css in each() iteration?
>
> e.g.
>
> jQuery("a").each(function() {
> // change css
>
> // do the rest
> )
>
> I don't want to use jQuery("a").css as it as imply
8 matches
Mail list logo