CSS3PIE悬停问题

发布于 2024-11-02 08:58:30 字数 1081 浏览 1 评论 0原文

我在 CSS3PIE 论坛中没有获得太多帮助 an我遇到的问题。 (是的,PIE 处于活动状态并且在页面的其他位置工作正常)

Observation Summary

失败实际上是在两个不同的元素上:< br> 1.回复链接的弯角(右上角和左下角)
2. 注释容器的边框(全部 4 个角)

IE8 示例

一些代码...

+回复此评论

.reply {
  margin: -1px 0 -1px -1px;
  padding: 0;
  font-size: 11px;
  line-height: 14px;
  color: #333;
}
.reply a:link {
  display: inline-block;
  padding: 3px 6px 3px 5px;
  -webkit-border-radius: 0 5px 0 5px;
  -moz-border-radius: 0 5px 0 5px;
  border-radius: 0 5px 0 5px;

  /* behavior: url(PIE.htc);  IE WON'T APPLY BEHAVIORS IN A HOVER SELECTOR? PLACING IT HERE ALSO GIVES Z-INDEX ISSUES */
}
.reply a:link, .reply a:visited  { color: #878787; }
.reply a:hover {
  padding: 2px 5px 2px 4px;
  color: #EEE;
  background-color: #666;
  border: 1px solid #666;
}

有什么想法吗?

I'm not having much luck in the CSS3PIE forum getting some help for an issue that I'm having. (yep, PIE is active and working fine elsewhere on the page)

Observation Summary

The failure is actually on two different elements:
1. The reply link's curved corners (top right & bottom left)
2. The comment container's border (all 4 corners)

IE8 Example

Some of the code...

<p class="reply"><a href="#">+ reply to this comment</a></p>

.reply {
  margin: -1px 0 -1px -1px;
  padding: 0;
  font-size: 11px;
  line-height: 14px;
  color: #333;
}
.reply a:link {
  display: inline-block;
  padding: 3px 6px 3px 5px;
  -webkit-border-radius: 0 5px 0 5px;
  -moz-border-radius: 0 5px 0 5px;
  border-radius: 0 5px 0 5px;

  /* behavior: url(PIE.htc);  IE WON'T APPLY BEHAVIORS IN A HOVER SELECTOR? PLACING IT HERE ALSO GIVES Z-INDEX ISSUES */
}
.reply a:link, .reply a:visited  { color: #878787; }
.reply a:hover {
  padding: 2px 5px 2px 4px;
  color: #EEE;
  background-color: #666;
  border: 1px solid #666;
}

Thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

这个俗人 2024-11-09 08:58:30

在您的回复 CSS 中,您有:

  /* behavior: url(PIE.htc);  IE WON'T APPLY BEHAVIORS IN A HOVER SELECTOR? PLACING IT HERE ALSO GIVES Z-INDEX ISSUES */

您的 PIE 行为已被注释掉。以下应该修复它(假设没有其他干扰):

  behavior: url(PIE.htc);  /* IE WON'T APPLY BEHAVIORS IN A HOVER SELECTOR? PLACING IT HERE ALSO GIVES Z-INDEX ISSUES */

In your reply CSS, you have:

  /* behavior: url(PIE.htc);  IE WON'T APPLY BEHAVIORS IN A HOVER SELECTOR? PLACING IT HERE ALSO GIVES Z-INDEX ISSUES */

Your PIE behavior is commented out. The following should fix it (assuming nothing else is interfering):

  behavior: url(PIE.htc);  /* IE WON'T APPLY BEHAVIORS IN A HOVER SELECTOR? PLACING IT HERE ALSO GIVES Z-INDEX ISSUES */
ぃ双果 2024-11-09 08:58:30

尝试更改:

.reply a:link, .reply a:visited { color: #878787; }

和:
.reply a:link, .reply a:visited { color: rgb(57, 57, 57) }

IE + PIE 好像对 # 字符有问题

Try changing:

.reply a:link, .reply a:visited { color: #878787; }

with:
.reply a:link, .reply a:visited { color: rgb(57, 57, 57) }

It seems IE + PIE have problems with # character

离笑几人歌 2024-11-09 08:58:30

我也遇到过类似的问题,并设法通过应用“position:relative”来获得一些效果,但出于某种奇怪的原因,它偶尔会起作用。我发现的另一件事是,当在样式表中使用 PIE.htc 时,IE8 似乎在构建 css 定位器时出现问题,即 ".class1 .class2 h2",相反,我通过将类直接归因于标签(即 h2 class="xxxx" )并将类简单地编写为 .xxxx 来设法使一些样式起作用样式表- 希望这个描述有意义并且有用

I've had similar problems and managed to get some effects working by applying "position:relative", for some strange reason this works sporadically. Another thing I've found is that IE8 seems to have a problem with building up the css locator when using PIE.htc within the style sheet i.e. ".class1 .class2 h2", instead I've managed to get some styles working by attributing a class directly to a tag i.e. h2 class="xxxx" and writing the class simply as .xxxx in the style sheet - hope this description makes sense and is of use

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文