简体   繁体   English

jQuery在IE中带有边框的圆角

[英]jQuery rounded corners with border in IE

I have a problem with my website in IE8 (6 and 7 also I guess). 我的网站在IE8中有问题(我猜也是6和7)。

My main div has rounded corners. 我的主div有圆角。 I did that with jQuery.corners - this works fine in Firefox en also IE! 我用jQuery.corners做到了-在Firefox和IE中都可以正常工作!

The problem is: in IE I don't see the (white) borders... Does someone know why? 问题是:在IE中,我看不到(白色)边框...有人知道为什么吗? Or is it nog supported? 还是支持nog?

The site is: http://77.243.237.196/~ksaatom/newsite 该站点是:http: //77.243.237.196/~ksaatom/newsite

It would be great if the border would work! 如果边界能够解决,那就太好了! Thanks in advance! 提前致谢!

Try using the LiquidCanvas jQuery plugin instead. 尝试改用LiquidCanvas jQuery插件。 It is a fully cross-browser (IE6/7/8, FF, etc) library that lets you do rounded-corners and borders. 这是一个完全跨浏览器的库(IE6 / 7/8,FF等),可用于绘制圆角和边界。 I've had similar problems with jQuery Corners in IE, but everything's worked for me since I switched to it. 我在IE中使用jQuery Corners遇到了类似的问题,但是自从我切换到它之后,一切对我来说都是有效的。

There is a write-up on how to use it for both corners and borders at http://www.caffeinedi.com/2009/11/02/using-jquery-and-liquidcanvas-to-add-drop-shadows-borders-rounded-corners-and-other-effects-to-your-website-even-in-ie6-and-ie7/ http://www.caffeinedi.com/2009/11/02/using-jquery-and-liquidcanvas-to-add-drop-shadows-borders中有关于如何在角落和边框中使用它的文章-rounded来访者,和其他效果到您的-网站偶数中,IE6-和IE7 /

Curvycorners is my favorite rounded corner plug-in so far. 到目前为止,Curvycorners是我最喜欢的圆角插件。 It gracefully degrades if the browser natively supports rounding corners (most modern browsers can do this through CSS). 如果浏览器本身支持圆角,则性能会下降(大多数现代浏览器都可以通过CSS实现)。

Another huge bonus is there is no JavaScript required (except for including a reference to the curvycorner file itself). 另一个巨大的好处是不需要JavaScript(除了包含对curvycorner文件本身的引用之外)。 All you have to do is add the appropriate CSS to your element and if it's not natively supported to do it automatically then curvycorners steps in. 您所要做的就是将适当的CSS添加到您的元素中,如果本机不支持自动执行此操作,那么弯曲的步骤会进入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM