哪种 Javascript 解决方案(不是 .htc)可以真正在 IE7 和 8 中实现抗锯齿圆角?
哪种 JavaScript 解决方案(不是 .htc
)可以真正在 IE7 和 8 中实现反锯齿圆角,就像 CSS3
在受支持的浏览器中提供的那样?
我尝试了很多
http://www.ruzee.com/blog/ruzeeborders/
http://blue-anvil.com/archives/anti-aliased -rounded-corners-with-jquery/
所有人都声称提供抗锯齿角,但提供像这样的角
alt text http:// /shup.com/Shup/375652/11063104941-My-Desktop.png
但是没有人提供抗锯齿角。如果我需要 10px
圆角。
Which JavaScript solution (Not .htc
) can really make Anti aliased round corner in IE7 and 8 like CSS3
gives in supported browsers?
I tried many
http://www.ruzee.com/blog/ruzeeborders/
http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery/
All are claiming to give anti aliased corner but giving corners like this
alt text http://shup.com/Shup/375652/11063104941-My-Desktop.png
But no one is giving anti aliased corner. if I need 10px
round corner.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您当然可以制作带有圆角图像的灵活元素。
请参阅本文。
由于许多现代浏览器现在都支持 CSS3 border-radius,因此您可以将其用作主要解决方案,并为不支持它的浏览器提供后备方案。
在最近的一个项目中,我创建了带有 border-radius 的网站,并为不支持它的浏览器使用了 jQuery .wrap() 。它看起来像这样:
HTML
CSS
jQuery
然后您可以按照上面的文章设置圆角元素的样式。
You can certainly make flexible elements with image round corners.
See this article.
Because CSS3 border-radius is now supported in many of the modern browsers, you could use that as your primary solution and provide a fallback for the ones that don't support it.
On a recent project, I created the website with border-radius and used the jQuery .wrap() for browsers that didn't support it. It looks something like this:
HTML
CSS
jQuery
And you can then style the round corner elements as per the article above.