你可以在IE中对TD进行悬停效果吗? [英] Can you have a hover effect on a TD in IE?
问题描述
我无法在TD上使用悬停效果在IE中工作,它接缝你不能
在IE浏览器中悬停在一个td?
我已经对此感兴趣
body.section-2 td.current,
body.section-2 td.submenu,
body.section-2 td.bredtsubmenumellemrumhojre,
body.section-2 td.bredtsubmenumellemrumvenstre {
background-color:#ffc233; < br $>
}
body.section-2 td.submenucurrent {
background-color:#ffcc66;
}
body.section-2 td.submenu:悬停{
background-color:#ffcc66; < br $>
}
这个
body.section-2 td.current,>
body.section-2 td.submenu,
body.section-2 td.bredtsubmenumellemrumhojre,
body.section-2 td.bredtsubmenumellemrumvenstre {
背景颜色:#ffc233;
}
body.section-2 td.submenucurrent,>
body.section- 2 td.submenu:悬停{
背景颜色:#ffcc66;
}
哪个适用于firefox,但不是IE浏览器。
然后我就像这样设置链接上的悬停效果。
a.submenulink:hover {
背景色:#ff0000;
}
然后整个单元格没有填写。
你能看到解决这个问题吗?
这里有问题 http://madsgormlarsen.dk/andersen/
Mads
I can not get hover effect on a TD to work in IE, it seams you can not
have
a hover on a td in IE?
I have treid this
body.section-2 td.current,
body.section-2 td.submenu,
body.section-2 td.bredtsubmenumellemrumhojre,
body.section-2 td.bredtsubmenumellemrumvenstre {
background-color: #ffc233;
}
body.section-2 td.submenucurrent {
background-color: #ffcc66;
}
body.section-2 td.submenu:hover {
background-color: #ffcc66;
}
and this
body.section-2 td.current,
body.section-2 td.submenu,
body.section-2 td.bredtsubmenumellemrumhojre,
body.section-2 td.bredtsubmenumellemrumvenstre {
background-color: #ffc233;
}
body.section-2 td.submenucurrent,
body.section-2 td.submenu:hover {
background-color: #ffcc66;
}
Which works in firefox, but not in IE.
Then I treid setting the hover effect on the link, like this.
a.submenulink:hover {
background-color: #ff0000;
}
But then the entire cell is not filled out.
Can you see a fix for this problem?
Se problem here http://madsgormlarsen.dk/andersen/
Mads
推荐答案
ma *********** *@gmail.com 写道:
我不能在TD上使用悬停效果在IE上工作,它接缝你不能
有一个悬停在IE中的td?
I can not get hover effect on a TD to work in IE, it seams you can not
have
a hover on a td in IE?
正确,:hover在IE中没有任何影响,只有a:hover。
A seri缺乏。
Correct, :hover has no effect in IE with the sole exception of a:hover.
A serious deficiency.
谢谢
然后可以以某种方式填写td单元吗?
>
Mads
Thanks
Can one then somehow make it fill out the td cell?
Mads
ma ************ @ gmail.com 写道:
谢谢
然后可以以某种方式让它填写td cell?
Thanks
Can one then somehow make it fill out the td cell?
对不起,我错过了你原来问的地方。如果链接是单元格的整个内容,则为链接设置display:block。然后
将有效地占用整个单元格(除了可能在单元格上的任何
填充或链接上的边距)。
Sorry, I missed where you asked that originally. If the link is the
entire content of the cell, then set display: block for the link. It
will then effectively take up the entire cell (except possibly for any
padding on the cell or margin on the link).
这篇关于你可以在IE中对TD进行悬停效果吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!