Php 图像及;进度条不在internet explorer中加载,但在firefox、chrome等中加载

Php 图像及;进度条不在internet explorer中加载,但在firefox、chrome等中加载,php,html,css,internet-explorer,Php,Html,Css,Internet Explorer,我正在使用最新的IE、Firefox和chrome。当我在本地服务器甚至主服务器上运行php代码时。内容滑块和进度条中的图像不会单独加载到Internet explorer中。它显示为黑色图像。下面是我的内容滑块及其css的代码 我到处寻找解决方案,但似乎没有在代码中找到问题。我甚至检查过我的jpg图像是RGB格式的,这是一些人以前遇到过的 </div> <!--slider for news--> <div class="container"> <di

我正在使用最新的IE、Firefox和chrome。当我在本地服务器甚至主服务器上运行php代码时。内容滑块和进度条中的图像不会单独加载到Internet explorer中。它显示为黑色图像。下面是我的内容滑块及其css的代码

我到处寻找解决方案,但似乎没有在代码中找到问题。我甚至检查过我的jpg图像是RGB格式的,这是一些人以前遇到过的

</div>
<!--slider for news-->
<div class="container">
<div id="content-slider">
<div id="slider">
    <div id="mask">
    <ul>
    <li id="first" class="firstanimation">
    <a href="#">
    <img src="login/images/images1.jpg" alt="news1"/>
    </a>
    </li>

    <li id="second" class="secondanimation">
    <a href="#">
    <img src="login/images/images2.jpg" alt="news2"/>
    </a>
    </li>

    <li id="third" class="thirdanimation">
    <a href="#">
    <img src="login/images/images3.jpg" alt="news3"/>
    </a>
    </li>

    <li id="fourth" class="fourthanimation">
    <a href="#">
    <img src="login/images/images4.jpg" alt="news4"/>
    </a>
    </li>

    <li id="fifth" class="fifthanimation">
    <a href="#">
    <img src="login/images/images5.jpg" alt="news5"/>
    </a>
    </li>
    </ul>
    </div>
    <div class="progress-bar"></div>
    </div>
</div>

您没有提到要用于动画的关键帧。此外,您还只为两个浏览器编写了动画属性

#slider li.firstanimation {
   -moz-animation:cycle 25s linear infinite;   /* This is Firefox prefix*/
   -webkit-animation:cycle 25s linear infinite;  /* This is Chrome/Opera prefix*/
}
我不懂上面的前缀,所以加上

#slider li.firstanimation {
   -moz-animation:cycle 25s linear infinite;   /* This is Firefox prefix*/
   -webkit-animation:cycle 25s linear infinite;  /* This is Chrome/Opera prefix*/
   animation:cycle 25s linear infinite; /* for IE */
}

现在我可以假设,由于前缀问题,动画没有发生,并且图像没有显示。请用更多细节更新您的问题,并添加小提琴。

另外添加了以下内容,只有这样它才有效

animation: fullexpand 10s ease-out infinite;  
@keyframes fullexpand {
    0% {
        width: 0px;}
    100% {
        width: 100%;};
}

可能重复的请阅读我的问题,其中说明我正在使用最新的internet explorer,然后将其标记为重复。该答案适用于IE 10或以下。我正在使用IE11。
animation: fullexpand 10s ease-out infinite;  
@keyframes fullexpand {
    0% {
        width: 0px;}
    100% {
        width: 100%;};
}