使用选择框下拉div不起作用IE9

时间:2012-08-01 09:52:38

标签: jquery html css

嗨我有IE9的问题。我有选择框的下拉菜单,如果我尝试选择值悬停div将消失。我试图通过一些代码弄清楚,但我被卡住了。这是我的代码。所以,如果有人知道如何修复IE萌芽,我会很高兴。 THX

代码:http://jsfiddle.net/fT7D3/13/

2 个答案:

答案 0 :(得分:1)

查看this fiddle

试试这段代码:

$('.left_content_tab_combobox').focus(function() {
    $(this).parents('.dropdown').addClass('dropdown_hover'); }).blur(function() {
    $(this).parents('.dropdown').removeClass('dropdown_hover');
});

答案 1 :(得分:0)

修改你的html + css并使用jQuery来隐藏和显示下拉列表。仅使用:hover伪选择器可能无法做到这一点,您可以查看此question

$(document).ready(function(){
    $('.drop').mouseenter(function(){
        $('#menu .content').hide();
        $(this).next('.content').show();
    });
    $('.closex').click(function(){
        $(this.parentNode).hide();
    });
});

fiddle / paste

相关问题