jquery - IE 8 .png 问题

标签 jquery css drupal background slideshow

好的,我已经搜索并发现了几个关于此的问题,但由于某种原因我找不到解决我的问题的方法我有背景颜色设置和页面背景设置与 CSS(不得不将图像路径更改为 typeimage 因为过滤器

#page-background
{
  position: absolute;
  background-image: url('images/page_g.jpg');
  background-repeat: repeat-x;
  top: 0;
  width: 100%;
  height: 900px;
  z-index: -1;

}

和 body 背景

body {
background:url(images/page_t.jpg) repeat #805B38;
font-size: 84%;
font-family: Arial, Helvetica, sans-serif;
color: #000;
margin: 0;
padding: 0;
line-height: 1.5em;

}

我的幻灯片 php 代码是

<?php if ($mission) : ?><div id="slideshow-bottom">
<div id="mission"><?php print $mission; ?></div></div><?php endif; ?>
<div class="slideshow">
<img src="<?php print $base_path . $directory; ?>/images/slideshows/Life.png" width="950" height="355" alt="slideshow 1"/>
<img src="<?php print $base_path . $directory; ?>/images/slideshows/Death.png" width="950" height="355" alt="slideshow 2"/>

</div>
</div>

现在幻灯片放映 PNG 在 Firefox 和 Chrome 中工作正常,但 IE 8 似乎非常透明,它显示 CSS body 标签中设置的背景颜色而不是背景图像。

我错过了什么?

经过更多研究后,我发现问题不在于 PNG 和背景本身 它似乎与 jquery 幻灯片有关,因为如果我注释掉除一张图片之外的所有图片,那么一张图片可以完美运行任何人有任何想法如何修复那个?

最佳答案

我知道这是一年后但是:

您的背景速记不正确。颜色应该排在第一位,在 URL 之前。

背景:#805B38 url(images/page_t.jpg) repeat;

有关 Dustin Diaz 对 CSS 简写的更多解释,请参阅此资源: http://www.dustindiaz.com/css-shorthand/

关于jquery - IE 8 .png 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4495579/

相关文章:

html - 带边框的容器内的 float 半径框

javascript - 当某个 div 悬停时获取正确的段落以显示

JQuery 下拉鼠标悬停

javascript - 为什么一段 Javascript 只有当我在它下面有一个警告时才有效?

javascript - 检查是否加载了 DIV 中的图像?

css - 显示浏览器 X 轴滚动条但已禁用

jquery - drupal 7 add_js 权重

php - 谷歌浏览器和 IE 中内容上方的空白区域

git - Git上的Drupal,数据库怎么办?

javascript - jquery .html() 无效字符 "#"