【发布时间】:2012-12-22 18:07:43
【问题描述】:
我的 jQuery 滑块上的圆角仅适用于 Firefox。
在 Firefox 17.0.1 中正确呈现(见下图)
在 Safari 版本 6.0.2 (8536.26.17) 中无法正确呈现(见下图)
在 Chrome 版本 23.0.1271.101 中无法正确呈现(见下图)
这里是 jsfiddle 构建:http://jsfiddle.net/plasticmonument/TCVH5/1/(注意,我只提供了滑块图像的完整路径 url,其他所有内容都将丢失)
我的 HTML:
enter code here
我的 CSS:
.hero-wrapper {
position: relative;
z-index: 2;
float: left;
width: 100%;
height: 429px;
border-radius: 10px;
border-top-left-radius: 0;
-webkit-border-radius: 10px;
-webkit-border-top-left-radius: 0;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius: 10px;
-moz-border-top-left-radius: 0;
-o-border-radius: 10px;
-o-border-top-left-radius: 0;
-ms-border-radius: 10px;
-ms-border-top-left-radius: 0;
overflow: hidden
}
#feature-slider ul.slider {
position: absolute;
top: 0;
left: 0;
width: 900000px
}
【问题讨论】:
-
为我在 Chrome 中工作...
-
that fiddle of yours 中有一大堆多余的代码。您不能将其简化为证明问题所需的内容吗?顺便说一句:在 jsFiddle 中,您不包含
<head></head>部分或<html></html>和<body></body>标记...仅包含<body></body>的 content。看到左边的面板了吗?使用它来包含外部文件。 -
酷,感谢您的帮助。
标签: css html rounded-corners