jquery - PIE.htc 和 jQuery 动画冲突?

标签 jquery css jquery-ui css3pie

我有一系列的子弹会接连出现。我在子弹动画中使用了 jQuery 和 jQuery UI。顶部元素符号需要有圆 Angular ,我正在使用 CSS 和 PIE.htc 来完成。这在所有非 IE 浏览器以及 IE8 中都很好用,但在 IE7 中,第一个元素符号出现时它的背景变窄了大约 80%,变短了大约 95%(或者它可能非常偏移到左上角)。

有趣的是,如果您完全调整浏览器窗口的大小,背景会卡入适当的位置(不是元素符号位于固定宽度的容器中,因此我不会在此处调整元素符号的大小)。如果我在我的 CSS 中注释掉 PIE.htc 行,元素符号会正确显示,但我需要圆 Angular 。参见 this image .

相关代码如下

JS

$([appripratebullet]).addClass('currentBullet').fadeIn('slow').prev().removeClass('currentBullet', 'slow');

CSS

.bullet
{
 display:none;
 color:#6e6e6e;
 min-height:40px;
 font-size:2.5em;
 line-height:1.5em;
 font-weight:normal;
 position:relative;
 padding:25px 20px;
 margin-top:1px;
 background:#eeeeee;
 border-bottom:1px solid #fff;
}
.bullet.first{
 margin-top:0;
 -moz-border-radius:8px 8px 0 0;
 -webkit-border-radius:8px 8px 0 0;
 border-radius:8px 8px 0 0;
 behavior: url(/Content/PIE.htc);
 }
.bullet.currentBullet{
 background:#d98452;
 color:#fff;
 }

最佳答案

http://jquery.malsup.com/corner/

使用这个 jquery 插件在所有浏览器中获得圆 Angular 。没有 Angular 图像,使用嵌套 dv 绘制边框。它灵活且易于使用。它还添加了对原生 border-radius 的支持,因此它仅在不支持 border-radius 的浏览器上执行。

关于jquery - PIE.htc 和 jQuery 动画冲突?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4605952/

相关文章:

javascript - React - 每个样式元素的组件?

jQuery .autosuggest 保留结果

jquery - 在 UI 对话框中加载 iframe 不起作用

jquery - 推特 Bootstrap 。删除列中 <div span> 元素之间的空格

javascript - CKEDITOR 将 <b> 替换为 <strong> 和其他标签

css - 在 HTML/CSS 中很难使用图像分隔符

html - 当我输入 <a href > 并返回主页时,img src 消失。(仅限 mozilla firefox)

javascript - 困惑为什么Javascript AJAX成功: JSON data is "invalid"

java - INPUT box-sizing border-box with 100% height and width inside TD issue in Chrome

jquery 日期时间选择器