English 中文(简体)
Internet Explorer中的jQuery按钮
原标题:jQuery buttons in Internet Explorer

我在我的页面上使用jQuery按钮。每当我点击其中一个按钮时,Internet Explorer就会添加一个丑陋的黑色边框,因为该按钮处于活动状态。当我皱眉头时http://jqueryui.com/demos/button/“rel=”nofollow“>jQuery按钮示例页使用IE,当我单击其中一个示例按钮时,此边框不可见。

为什么不呢?他们如何避开这条边界?我检查了他们的CSS文件,但找不到任何东西。。。

禁用该边界的唯一方法是使用CSS过滤器(这不是有效的CSS):

button { filter:chroma(color=#000000); }

也许有更好的解决方案?

问题回答

你的CSS中还有其他可能导致这种情况的东西吗?如果它没有出现在示例页面上,那么是您的标记/css/javascript中的某些内容导致了它。

试着只使用中的按钮制作一个孤立的示例,并添加所有其他CSS,直到找到原因为止。

使用这个CSS过滤器要小心。这将导致IE8中的副作用——单选按钮内的子弹将变得不可见。因此,从视觉上看,尽管单选按钮操作正常,但它们似乎无法工作。





相关问题
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 ...

热门标签