JQuery Cycle 插件在 IE8 中不显示文本叠加
首先我要说的是,我是网页设计的初学者,所以我的代码和网站可能有点混乱(尽管我尽力做得干净)。
我已成功将 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> 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>
通过这个,我是否有机会被引导到我应该放置哪些代码?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在过去的几个小时里,我也把头撞在墙上,看到了你的帖子。将 z-index 添加到覆盖 css 元素和幻灯片容器中为我解决了这个问题。
示例:
为覆盖 CSS 类添加较高的 z 索引号。
对幻灯片的 CSS 容器使用较低的 z 索引号。
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.