English 中文(简体)
Mouseenter只向IE9的透明潜水区开火
原标题:Mouseenter only fired on border of transparent div in IE9

在我的法典中,我有一片id子,要装上不同的细节,取决于该 mo的目前多半。 我将以下两名听众附在每一个相关部分:

$(annoDiv).mouseover(function(event){
                event.stopPropagation;
                $( #SIAinfoBox ).empty();
                $( #SIAinfoBox ).append(details);
                $( #SIAinfoBox ).css( visibility , visible );
            });
$(annoDiv).mouseleave(function(event){
                event.stopPropagation;
                $( #SIAinfoBox ).empty();
                $( #SIAinfoBox ).css( visibility , hidden );
            });

These divs have no background-color set, but have a 1px solid black border. In Firefox, all works well. But in Internet Explorer, the SIAinfoBox is filled only when the mouse is over the border of the div. Moving it inside the div seems to fire the mouseleave event, and the content is removed and div hidden. If I set a background-color, it works like it is expected to, but with no background-color (or transparent) it does not work. I have also tried using mouseenter instead of mouseover, but with the same results. Why does InternetExplorer behave like that or what can I do to achieve the results I am currently getting in FF for IE, too?

问题回答

I ve had similar IE related issues such as this - you could make a transparent png and set the background to "url(images/transparent.png) repeat scroll 0 0 transparent" – SmokeyPHP

Didnt首先认为他的意见,因此,我在这里作回答。 具有以下链接的透明形象:

<Answer:hoo=”background:url(images/transul.png)

http://www.golivetutor.com/download/spacer.gif”rel=“nofollow noreferer” http://www.golivetutor.com/download/spacer.gif。

当背景是透明的时,它也会为事件带来“透明”因素。 如果获得某种帮助,则使用“部分布局”(佐马:1),在您的成分面前树立透明的形象

我曾经历过,采用捆绑的trick滴滴滴滴滴滴滴滴trick。

{
  zoom: 1;
}

在E9研究所工作,但不在E10。 如果你没有透明的全球投资框架或全国投资计划,如其他解决办法所述,也可使用:

{
  background-color: rgba(0, 0, 0, 0.1);
}

Note that you will need to avoid applying this style in IE 8 as it seems to cause problems. "rgba" is available for IE9 and higher.





相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签