如何在 IE 6 中使用 jQuery UI 选项卡
我不太擅长 CSS,但经过大量试验和错误,我制作了这个带有 jQuery UI 选项卡的页面,看起来还不错: http://jsbin.com/uquvi
然而,当我在 IE 6 中打开此页面时,令我失望的是,选项卡似乎没有弯角。
现在在工作中,他们的选项卡实现非常糟糕,因为他们正在创建带有标签的选项卡,而且看起来很混乱。 此外,他们目前正在通过两个 gif 图像来实现弯曲的标签角。 我在许多博客中看到过 jQuery UI 选项卡,因此决定使用它,但现在我遇到了问题。
有人可以看一下该页面并告诉我如何针对 IE 6 纠正此问题吗?
I am not very good with CSS but with lot of trial and error I made this page that has jQuery UI tabs and looks somewhat decent: http://jsbin.com/uquvi
However, when I open this page in IE 6, to my disappointment the tabs don't seem to have curved corners.
At work right now they have a very bad implementation of tabs because they are creating tabs with tags and it just looks messy. Also, they are currently achieving curved tab corners by having two gif images. I had seen jQuery UI tabs in many blogs so decided to run with it but now I am problems.
Can someone please have a look at the page and tell me how to correct this for IE 6?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您使用的
这两个属性都是 Firefox 和 webkit(Safari 和 Chrome)的自定义属性,
如果您想在 IE 中使用圆角,则必须使用背景图像来实现。
在这篇 Matt Berseth 博客文章中,您将找到如何执行此操作的示例,但是基本上,您必须为选项卡分配带有圆角的背景图像。
在此链接中执行此操作的另一种方法
顺便说一句,您正在引用的网页的 html很乱,有两个
html、body 和 head
标签You are using
both properties are custom for Firefox and webkit (Safari and Chrome)
If you want rounded corners in IE you have to do them with background images.
In this Matt Berseth blog post you will find example how to do it, but basically you have to assign a background image with the rounded corner to the tab.
Another way to do it in this link
BTW, the html of the web page your are referencing is very messy, with two
html, body and head
tags您可以使用 corner 插件,如果导航器不支持舍入,该插件会尽可能使用 CSS CSS(如 ie6),用 javascript 进行舍入。
You can use the corner plugin, which uses CSS when possible, if the navigator doesn't support rounding with CSS (as ie6), rounds with javascript.