开发者

jQuery FadeTo() bg on rollover, IMG animate().width height

开发者 https://www.devze.com 2022-12-31 20:27 出处:网络
I have been reading StackOverflow for a while and now I have a question I cannot find an answer to. i am trying to fade a background and increase on img size on rollover.

I have been reading StackOverflow for a while and now I have a question I cannot find an answer to.

i am trying to fade a background and increase on img size on rollover.

I have tried animate() and fadeTo(), however, the entire div fades. Do I need to absolute position my images over the div and not within it? img o开发者_C百科r img?

Is that the only way to get items within a div to not fade along with the background?

Thanks! Jason


Yes, you need to use absolute positioning, if you fade the div that is wrapping the image then everything in the div will fade.

0

精彩评论

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

关注公众号