English 中文(简体)
j Query Slider fn t Work in IE
原标题:jQuery Slider Doesn t Work in IE

我的法典与所有浏览器完全合作,但IE除外。 我尝试了我能够在没有幸运的论坛上找到的每一种解决办法。 我仍在学习贾瓦语,因此我稍后将学习 j。 问题是,在IEE,幻灯片的垂直出现,没有效果。 我的守则是:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <link href="stylesheet...css" rel="stylesheet" type="text/css" />

    <title>div test</title>
    <script src="jquery.js" type="text/javascript"></script>
    <script src="jquery.bxSlider.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function(){
            var slider = $( #slider1 ).bxSlider({
                controls: false
            });

            $( #bx-prev ).click(function () {
                slider.goToPreviousSlide();
                return false;
            });

            $( #bx-next ).click(function () {
                slider.goToNextSlide();
                return false;
            });
        });
    </script>
</head>

<body>
    <div id="slider1">
        <div>
            <div id="wrapper">
                <div id="head"><img alt="logo" align="left" src="logo.png"/></div>
                <div id="main"> <div id="content">content</div> </div>
                <div id="rash"><img alt="r" align="middle" 
                                    style="position:relative;top:-70px;" 
                                    src="image1.png"/></div>
                <div style="clear:both"></div>
            </div>
        </div>
        <div>
            <div id="wrapper">
                <div id="head"><img alt="logo" align="left" src="logo.png"/></div>
                <div id="main"> <div id="content">content</div> </div>
                <div id="rash"><img alt="r" align="middle" 
                                    style="position:relative;top:-70px;"
                                    src="image1.png"/></div>
                <div style="clear:both"></div>
            </div>
        </div>
        <div>page3</div>
        <div>page4</div>
    </div>
    <div id="bx-next">next</div>
    <div id="bx-prev">prev</div>
</body>
</html>

我的风格是:

div#head {
    width:100%;
    height:100px;
    /*background-color:antiquewhite;*/
    margin-bottom:100px;
}

div#content {
    border-left: 2px solid #F0F8FF;
    border-right: 2px solid #8a815d;
    border-top: 2px solid #8a815d;
    border-bottom: 2px solid #8a815d;
    width:400px;
    height:300px;
    -webkit-border-radius: 0px 28px 20px 0px;
    -moz-border-radius: 0px 28px 20px 0px;
    border-radius: 0px 28px 20px 0px;
    font-family:Arial,Helvetica,sans-serif;
    color:#8a815d;
    padding-left:100px;
    background-color:#F0FFFF;
    background-color: rgba(215,227,211,0.3);
    position:relative;
    top:20px;
    left:0px
}


div#wrapper {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px;
}

div#main {
    /* background-color:black;*/
    width:50%;
    height:360px;
    float:left;
}

div#rash {
    float:right;
    /*background-color:blue;*/
    height:360px;
    width:50%;
}

body {
    background-color: #E8F3F9;
    background-image: url( squares layer.png );
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;
}

/*next button*/
#bx-next {
    position:absolute;
    top:45%;
    right:3px;
    z-index:998;
    width: 30px;
    height: 30px;
    text-indent: -999999px;
    background: url(gray_next.png) no-repeat 0 -30px;
}

/*previous button*/
#bx-prev {
    position:absolute;
    top:45%;
    left:4px;
    z-index:998;
    width: 30px;
    height: 30px;
    text-indent: -999999px;
    background: url(gray_prev.png) no-repeat 0 -30px;
}
问题回答

我也存在同样的问题,但我尚未得出结论,但从我迄今所看到的情况来看,这就是说,要通过确认你的法典来回避这一问题。 http://validator.w3.org/ 我照搬了你的法典,并说你有5个错误,因此我认为,一个开端是纠正这些错误,因为国际电子计算方法非常简单,如果你会影响你的格式,就会有任何错误。 我也知道,国际电子计算中心正在了解你的代码顶端的Doc型号,如果它不正确,也会影响该页的格式。 如果我能解决我的类似问题,我会让大家知道,因为这很可能是你面临的同样问题。

<代码><div id=“wrapper”> 两次界定。 在你的网页上,每个要素都需要一个识别码。 Same 转载于<div id=“head”><div id=“main”>、<div id=“content”><div id=“rash”>

Also, have you tried debugging it in the IE console? Try and see if the console logs any errors at runtime. Then get back to SO and post those errors.

乘客。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签