css问题 - 不需要的鼠标悬停事件 [英] css problem - unwanted mouseover events

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

问题描述

嗨 - 希望有人可以建议这样的方式


http://www.tidybit.com/public/


这是我正在做的网站的精简版。


当您将鼠标悬停在左侧的艺术家名称时 -

右侧的图像会发生变化。这很好用。当您将鼠标移出默认图像时

重新出现。到现在为止还挺好。我的问题是,如果我将鼠标向上移动

并在列表中向下传递各种艺术家名称,但介于两者之间

会触发div id = container_artistlist的mouseout事件 -

因此你可以连续闪现默认图像。这不是可取的b $ b b。我希望按原样离开菜单,但想要某种方式来避免这些''闪烁''。我觉得这很容易,但它让我现在难以接受
。非常感谢任何想法。


gdp

hi - hope someone can suggest a way round this

see http://www.tidybit.com/public/

this is a stripped down version of a site i am doing.

when you mouseover the artist names on the left - the image on the
right changes. this works fine. when you mouse out the default image
reappears. so far so good. my problem is that if i move the mouse up
and down the list it passes over various artist names but in between
triggers the mouseout event for the the div id=container_artistlist -
thus you get continual flashes of the default image. this is not
desirable. i wish to leave the menu as is but would like some way of
avoiding these ''flashes''. i thought this would be easy but it has me
stumped at the moment. thanks very much for any ideas given.

gdp

推荐答案

gdp写道:
gdp wrote:

>

参见 http://www.tidybit.com/public/


当鼠标悬停在左侧的艺术家名称时 -

正确的变化。
>
see http://www.tidybit.com/public/

when you mouseover the artist names on the left - the image on the
right changes.



不适合我,不是。哦,我觉得它需要JavaScript。


BTW,你必须*在你的样式表中改变这个:


body {font-size: 8px;}

div #bc {font-size:1.4em;}


这似乎是一种设置类型大小的时髦方式(微小的正文然后

增加它的段落),但这是一个令人难以置信的愚蠢的做法。

开始这种时尚的人应该被鞭打。对于我们这些在浏览器中使用

最小字体大小的人来说,结果是段落类型是

过大,因为它变为最小值的1.4,而不是1.4

愚蠢的小8px。


布局也会放大文字。


有些遗憾对于你的用户,嗯?


-

Berg

Not for me it doesn''t. Oh, I see it requires JavaScript.

BTW, you *must* change this in your stylesheet:

body {font-size: 8px;}
div#bc {font-size: 1.4em;}

This seems to be a fashionable way to set type size (tiny body text then
increase it for paragraphs), but is an incredibly stupid practice.
Whoever started this fad should be flogged. For those of us who use a
minimum font-size in the browser, the result is paragraph type is
excessively large, since it becomes 1.4 of the minimum, not 1.4 of the
stupidly small 8px.

The layout breaks with enlarged text, too.

Have some pity for your users, eh?

--
Berg


11月20日,23: 01,Bergamot< berga ... @ visi.comwrote:
On 20 Nov, 23:01, Bergamot <berga...@visi.comwrote:

gdp写道:
gdp wrote:

seehttp ://www.tidybit.com/public/
seehttp://www.tidybit.com/public/

当你将鼠标悬停在左边的艺术家名字时
-
$上的图片b $ b正确的变化。
when you mouseover the artist names on the left - the image on the
right changes.



不适合我,不是。哦,我觉得它需要JavaScript。


BTW,你必须*在你的样式表中改变这个:


body {font-size: 8px;}

div #bc {font-size:1.4em;}


这似乎是一种设置类型大小的时髦方式(微小的正文然后

增加它的段落),但这是一个令人难以置信的愚蠢的做法。

开始这种时尚的人应该被鞭打。对于我们这些在浏览器中使用

最小字体大小的人来说,结果是段落类型是

过大,因为它变为最小值的1.4,而不是1.4

愚蠢的小8px。


布局也会放大文字。


有些遗憾为您的用户,嗯?


-

Berg


Not for me it doesn''t. Oh, I see it requires JavaScript.

BTW, you *must* change this in your stylesheet:

body {font-size: 8px;}
div#bc {font-size: 1.4em;}

This seems to be a fashionable way to set type size (tiny body text then
increase it for paragraphs), but is an incredibly stupid practice.
Whoever started this fad should be flogged. For those of us who use a
minimum font-size in the browser, the result is paragraph type is
excessively large, since it becomes 1.4 of the minimum, not 1.4 of the
stupidly small 8px.

The layout breaks with enlarged text, too.

Have some pity for your users, eh?

--
Berg



javascript有什么问题?

whats wrong with javascript?


2007年11月21日星期三00:30:32 +0100,gdp< ti ***** @ googlemail.comwrote:
On Wed, 21 Nov 2007 00:30:32 +0100, gdp <ti*****@googlemail.comwrote:

11月20日,23:01,Bergamot< berga ... @ visi.comwrote:
On 20 Nov, 23:01, Bergamot <berga...@visi.comwrote:

> gdp写道:
>gdp wrote:

seehttp://www.tidybit.com/public/
seehttp://www.tidybit.com/public/


当你鼠标悬停在左侧的艺术家名称 -

右侧的图像更改。
when you mouseover the artist names on the left - the image on the
right changes.


不适合我,不是。哦,我觉得它需要JavaScript。

顺便说一下,你必须*在你的样式表中改变这个:

body {font-size:8px;}


Not for me it doesn''t. Oh, I see it requires JavaScript.

BTW, you *must* change this in your stylesheet:

body {font-size: 8px;}



Aaaargh!

Aaaargh!


javascript有什么问题?
whats wrong with javascript?



另一件可能出错的事情。它在Opera中打破(好吧,没有什么

更改,我懒得检查另一个浏览器)启用了javascript for

实例。

-

Rik Wasmus

Just another thing that can go wrong. It breaks in Opera (well, nothing
changes, I''m to lazy to check another browser) with javascript enabled for
instance.
--
Rik Wasmus


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

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