非锚标签的悬停效果 [英] Hover effect for non-anchor tags
问题描述
是否有可能在CSS中为非锚标签实现悬停效果?
我可以使用以下代码,但它违背了这个问题:
< a href ="" onclick =" return false;">标签< / a>
肯定必须采用正确的方式吗?
>
谢谢
克里斯
Is it possible to achieve a hover effect for a non-anchor tag in CSS?
I can use the following code, but it goes against the grain:
<a href="" onclick="return false;">Label</a>
Surely there must be a ''proper'' way of doing it?
Thanks
Chris
推荐答案
CJM写道:
是否有可能在CSS中为非锚标签实现悬停效果?
我可以使用以下代码,但它违背了这个问题:
< a href =" ;" onclick =" return false;">标签< / a>
当然必须采用正确的方式吗?
Is it possible to achieve a hover effect for a non-anchor tag in CSS?
I can use the following code, but it goes against the grain:
<a href="" onclick="return false;">Label</a>
Surely there must be a ''proper'' way of doing it?
>
只需找到一个正确实现所有
元素的hover伪类的客户端(提示:不是IE)。
-
史蒂夫
很奇怪身体上的勇气应该在世界上如此普遍而且道德很难实现。 -Mark Twain
Just find a client that correctly implements the :hover pseudo-class for all
elements (hint: not IE).
--
Steve
It is curious that physical courage should be so common in the world and moral
courage so rare. -Mark Twain
帖子< bm ************ @ ID-209813.news.uni-berlin.de>
CJM说...
In post <bm************@ID-209813.news.uni-berlin.de>
CJM said...
是否有可能在CSS中为非锚标签实现悬停效果?
Is it possible to achieve a hover effect for a non-anchor tag in CSS?
:hover伪类可以应用于任何元素。 opera和mozilla
支持将鼠标悬停在< a>以外的元素上。你需要测试。
-
brucie。
13 / October / 2003 09:16:15 pm />
the :hover pseudo-class can apply to any element. opera and mozilla
have support for hover on elements other than <a>. you need to test.
--
brucie.
13/October/2003 09:16:15 pm
嗯....我有一种可怕的感觉这就是答案....
这是一个内联网系统。猜猜我们的标准浏览器是什么....
好吧....
CJM
Steve Fulton < CE ******** @ hotmail.com>在消息中写道
news:rE ******************* @ news20.bellglobal.com ..。
Hmmm.... I had a horrible feeling this would be the answer....
This is an intranet system. Guess what our standard browser is....
Oh well....
CJM
"Steve Fulton" <ce********@hotmail.com> wrote in message
news:rE*******************@news20.bellglobal.com.. .
CJM写道:
是否有可能在CSS中为非锚标签实现悬停效果?
我可以使用下面的代码,但它违背了这个问题:
< a href ="" onclick =" return false;">标签< / a>
肯定有一种正确的方式吗?
找到一个正确实施的客户端:hover伪类
Is it possible to achieve a hover effect for a non-anchor tag in CSS?
I can use the following code, but it goes against the grain:
<a href="" onclick="return false;">Label</a>
Surely there must be a ''proper'' way of doing it?
Just find a client that correctly implements the :hover pseudo-class for
所有元素(提示:不是IE)。
-
Steve
>奇怪的是,身体上的勇气应该在世界上如此普遍,并且道德勇气如此罕见。 -Mark Twain
all elements (hint: not IE).
--
Steve
It is curious that physical courage should be so common in the world and
moral courage so rare. -Mark Twain
这篇关于非锚标签的悬停效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!