JQuery Cycle 插件在 IE8 中不显示文本叠加

发布于 2024-11-24 01:27:25 字数 2621 浏览 1 评论 0原文

首先我要说的是,我是网页设计的初学者,所以我的代码和网站可能有点混乱(尽管我尽力做得干净)。

我已成功将 JQuery Cycle 插件添加到我网站的主页,该插件在 Chrome、Firefox 中看起来很棒,甚至在我接受附加组件后也能在 IE9 中运行。但是,当我在 IE8 上测试它时,没有要求加载任何插件,并且它显示的文本是黑色的常规字体,因为背景也是黑色的,所以看不到。

我认为问题出在 IE8 和 CSS 文件中的某个地方,尽管我不完全确定。我希望有一个解决办法。

jquery-1.3.1.min.js

这是我的代码:

<div id="data" style="position: absolute; left: -12px; top: 237px; width: 775px; height: 556px; z-index: 11">

<div id="layer8" style="position: absolute; left: 13px; top: 3px; width: 760px; height: 456px; z-index: 17">

        <div id="gallery">
<a href="#" class="show">
    <img src="images/intro/Slide_1.jpg" alt="Flowing Rock" width="997" height="532" title="" alt="" rel="<h3intro>Great Neck - A Community of Luxury Homes</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_2.jpg" alt="Grass Blades" width="997" height="532" title="" alt="" rel="<h3intros>SEEK THE BEST</h3intros><h3intro>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KNOWLEDGE...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_3.jpg" alt="Ladybug" width="997" height="532" title="" alt="" rel="<h3intros>SEEK THE BEST</h3intros><h3intro>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INTEGRITY...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_4.jpg" alt="Lightning" width="997" height="532" title="" alt="" rel="<h3intros>SEEK THE BEST</h3intros><h3intro>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SERVICE...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_5.jpg" alt="Lotus" width="997" height="532" title="" alt="" rel="<h3intro>We love what we sell...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_6.jpg" alt="Mojave" width="997" height="532" title="" alt="" rel="<h3intro>And only sell what we love...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_7.jpg" alt="Pier" width="997" height="532" title="" alt="" rel="<h3intros>FIND&nbsp;&nbsp;&nbsp;&nbsp;</h3intros><h3intro>JANET ETESSAMI REALTY</h3intro>"/>
</a>

            <div class="caption">

                <div class="content">
                </div>

            </div>

        </div>

        <div class="clear">
        </div>

</div>

通过这个,我是否有机会被引导到我应该放置哪些代码?

Let me start by saying how I am a beginner at web designing, so my code and website may be a bit messy (although I try to do a clean job).

I have successfully added the JQuery Cycle Plugin to the homepage of my website, which looks great in Chrome, Firefox, and even works in IE9 when I accept the add-ons. But, when I tested it on IE8 no plug-in was asked to load, and it shows the text it show's it in regular font in black, which cannot be seen because the background is also black.

I assume the problem lies somewhere within IE8 and the CSS file, although I am not entirely sure. I'm hoping there's a fix for this.

jquery-1.3.1.min.js

Here is my code:

<div id="data" style="position: absolute; left: -12px; top: 237px; width: 775px; height: 556px; z-index: 11">

<div id="layer8" style="position: absolute; left: 13px; top: 3px; width: 760px; height: 456px; z-index: 17">

        <div id="gallery">
<a href="#" class="show">
    <img src="images/intro/Slide_1.jpg" alt="Flowing Rock" width="997" height="532" title="" alt="" rel="<h3intro>Great Neck - A Community of Luxury Homes</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_2.jpg" alt="Grass Blades" width="997" height="532" title="" alt="" rel="<h3intros>SEEK THE BEST</h3intros><h3intro>     KNOWLEDGE...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_3.jpg" alt="Ladybug" width="997" height="532" title="" alt="" rel="<h3intros>SEEK THE BEST</h3intros><h3intro>      INTEGRITY...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_4.jpg" alt="Lightning" width="997" height="532" title="" alt="" rel="<h3intros>SEEK THE BEST</h3intros><h3intro>      SERVICE...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_5.jpg" alt="Lotus" width="997" height="532" title="" alt="" rel="<h3intro>We love what we sell...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_6.jpg" alt="Mojave" width="997" height="532" title="" alt="" rel="<h3intro>And only sell what we love...</h3intro>"/>
</a>
<a href="#">
    <img src="images/intro/Slide_7.jpg" alt="Pier" width="997" height="532" title="" alt="" rel="<h3intros>FIND    </h3intros><h3intro>JANET ETESSAMI REALTY</h3intro>"/>
</a>

            <div class="caption">

                <div class="content">
                </div>

            </div>

        </div>

        <div class="clear">
        </div>

</div>

Through this, any chance I could be directed to exactly what code I should be putting?

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

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

发布评论

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

评论(1

鲜肉鲜肉永远不皱 2024-12-01 01:27:25

在过去的几个小时里,我也把头撞在墙上,看到了你的帖子。将 z-index 添加到覆盖 css 元素和幻灯片容器中为我解决了这个问题。

示例:

为覆盖 CSS 类添加较高的 z 索引号。
对幻灯片的 CSS 容器使用较低的 z 索引号。

<style>
.overlay-css 
{ 
   your css
   z-index: 4; 
}
.slideshow { 
   your css
   z-index: 3; 
}
</style>

<div id="slideshow-wrapper">
    <div class="overlay-css">This is the text that appears over the slideshow.</div>    
    <div class="slideshow">
        <img src="image1.jpg" width="100" height="100" alt="test-1"/>
        <img src="image2.jpg" width="100" height="100" alt="test-2"/>
    </div>
</div>

I was banging my head against the wall for the last few hours also and saw your post. Adding z-index to both the overlay css element and the slideshow container fixed it for me.

Example:

Add the higher z-index number for the overlay CSS class.
Use a lower z-index number for the CSS container for the slideshow.

<style>
.overlay-css 
{ 
   your css
   z-index: 4; 
}
.slideshow { 
   your css
   z-index: 3; 
}
</style>

<div id="slideshow-wrapper">
    <div class="overlay-css">This is the text that appears over the slideshow.</div>    
    <div class="slideshow">
        <img src="image1.jpg" width="100" height="100" alt="test-1"/>
        <img src="image2.jpg" width="100" height="100" alt="test-2"/>
    </div>
</div>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文