弹出滑块在IE中不起作用.一些javascript干扰的CSS代码.请帮我 [英] Pop up slider not working in IE. Some javascript interfering css code. Please help me

查看:95
本文介绍了弹出滑块在IE中不起作用.一些javascript干扰的CSS代码.请帮我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,请选中此页面.

请使用除IE之外的任何浏览器访问该页面.单击第四个项目符号.然后单击"hogc故事"链接.您可以看到一个弹出滑块.

Please visit the page using any browser except IE. Click the 4th bullet. And then click "the hogc story" link. You can see one popup slider.

现在使用IE访问该页面.弹出滑块在那里不起作用.它仅显示黑屏.我的代码有什么问题? 这是我的代码谢谢. 特别感谢 Jawad 的屏幕截图.

Now visit the page using IE. popup slider not working there. It only shows black screen. What is wrong in my code?. Here is my code Thanks. Special thanks to Jawad for the screenshot.

这是他在我的代码中发现的.

This is what he found out in my code.

在Windows 7的IE9中,在您的代码下

In IE9 on Windows 7, In your code under

<div class="slider nivoSlider>

图片的内联样式为

display: none;

所以有人可以告诉我如何解决此问题吗?我不知道哪个javascript在IE中导致此问题.它在所有其他浏览器中都可以正常工作. 谢谢

So can anyone tell me how to fix this problem.? I have no idea which javascript causing this problem in IE. Its working fine in all other browsers. Thanks

推荐答案

我自己修复了它.我正在使用的滑块是nivoslider.需要在那里定义高度以使其在IE中工作.这就是我在代码中应用的内容.

I fixed it by myself. The slider what i'm using is nivoslider. Height need to defined there to make it work in IE.This is what i applied in my code.

.slider { position:relative; width: 1280px; height: 412px; background: url(../images/loading.gif) no-repeat 50% 50%; }

.slider { position:relative; width: 1280px; height: 412px; background: url(../images/loading.gif) no-repeat 50% 50%; }

这篇关于弹出滑块在IE中不起作用.一些javascript干扰的CSS代码.请帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆