鼠标悬停问题 [英] mouseover problem

查看:95
本文介绍了鼠标悬停问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如果你去 http://inetgate.ch/new/test/template.htm 并移动鼠标

在左上角的链接上,你看到文字背景保持不变

和鼠标一样。如果我只是在hovr上添加一个文本背景,那么当我在图像上时它就会点亮文本背景上的b $ b ...我如何制作文本

backgnd透明,它总是和后面的div一样吗?

谢谢!

roN

Hi,

If you go to http://inetgate.ch/new/test/template.htm and move the mouse
over the links on the left top, you see that the text background stays the
same as on mouse out. if i just add a text backgnd on hovr, it just lights
up the text backgnd when i''m over the image...how cam i make the text
backgnd transparent that it''s always the same as the div behind?
Thank you!
roN

推荐答案

在2007-01-06,roN< NO **** @ example.comwrote:
On 2007-01-06, roN <NO****@example.comwrote:




如果你去 http://inetgate.ch/ new / test / template.htm 并移动鼠标

在左上方的链接上,你会看到文本背景与

相同小鼠了。如果我只是在hovr上添加一个文本背景,那么当我在图像上时它就会点亮文本背景上的b $ b ...我如何制作文本

背景透明,它总是与后面的div相同?
Hi,

If you go to http://inetgate.ch/new/test/template.htm and move the mouse
over the links on the left top, you see that the text background stays the
same as on mouse out. if i just add a text backgnd on hovr, it just lights
up the text backgnd when i''m over the image...how cam i make the text
backgnd transparent that it''s always the same as the div behind?



只需使用background:transparent on .nav_point a而不是颜色,

并从.nav_point删除背景颜色线a:悬停。

Just use background: transparent on .nav_point a instead of the colour,
and delete the background-color line from .nav_point a:hover.


roN写道:
roN wrote:

>

如果你去 http://inetgate.ch/new/test/template.htm并在左上方的链接上移动鼠标

,您会看到文本背景与鼠标移出时相同。


>
If you go to http://inetgate.ch/new/test/template.htm and move the mouse
over the links on the left top, you see that the text background stays the
same as on mouse out.



为什么你用JavaScript而不是CSS:悬停规则?当JS被禁用时,

完全无效。


-

Berg

Why are you doing this with JavaScript, not CSS :hover rules? There is
no effect at all when JS is disabled.

--
Berg


Bergamot写道:
Bergamot wrote:

roN写道:
roN wrote:

>>
如果你去 http://inetgate.ch/new/test /template.htm 并将鼠标移到左上方的链接上,您会看到文本背景与鼠标移出时相同。
>>
If you go to http://inetgate.ch/new/test/template.htm and move the mouse
over the links on the left top, you see that the text background stays
the same as on mouse out.



你为什么要用JavaScript而不是CSS:悬停规则?当JS被禁用时,

根本没有效果。


Why are you doing this with JavaScript, not CSS :hover rules? There is
no effect at all when JS is disabled.



我如何将整个div悬停在那里?谢谢你的提示!


roN

how do i hover the whole div then? thank you for that hint!

roN


这篇关于鼠标悬停问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆