简体   繁体   English

某些图像在 XAMPP/HTML 中有效,但并非全部有效?

[英]some images work but not all of them in XAMPP/HTML?

so im currenrly coding a image viewer for my website but where my problem lies is all my websites images are in my img folder and all of the older ones work but if i add any more they wont show on my site?所以我目前正在为我的网站编写图像查看器,但我的问题在于我所有的网站图像都在我的img文件夹中,所有旧的图像都可以使用,但是如果我添加更多图像,它们将不会显示在我的网站上? all of my folders are in the htdocs and everything else works just not SOME of the images.... heres the html code :)我所有的文件夹都在htdocs ,其他所有内容都无法正常工作,只是某些图像无法正常工作......这是 html 代码 :)

`    <!--image viewer-->
<script type="text/javascript" src="slider.js"></script>
<div class="big_img_wrapper">
                <img src="img/maxresdefault.jpg" id="big_img_1" class="big_img">
                <img src="img/sunset.png" id="big_img_2" class="big_img">
                <img src="img/background1.png" id="big_img_3" class="big_img">

            </div>
            <div class="thumbs_img_wrapper">
                <img src="img/maxresdefault.jpg" id="thumbs_img_1" calss="thumbs_img">
                <img src="img/sunset.png" id="thumbs_img_2" calss="thumbs_img">
                <img src="img/background1.png" id="thumbs_img_3" calss="thumbs_img">
            </div>
</div>`

The spesific image that isnt working here is "maxresdefault.jpg"?在这里不起作用的特定图像是“maxresdefault.jpg”? this is happening throught my site with any more photos that i add... any ideas??这是通过我的网站发生的,我添加了更多照片......有什么想法吗??

what I can see from the above information is, it just not working for the only jpg image.从上面的信息中我可以看到,它只是不适用于唯一的jpg图像。 Perhaps you should verify the image in your image folder has the same jpg extension.也许您应该验证图像文件夹中的图像是否具有相同的jpg扩展名。 It might be png .它可能是png

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM