简体   繁体   English

图片未显示在HTML Live网站中

[英]Image not showing up in html live site

I have got a site i am busy creating but when i upload my site live, the one image does not show. 我有一个网站正在忙于创建,但是当我实时上传网站时,一个图片没有显示。 Here is the code 这是代码

<div id="adbox">
            <div class="clearfix">
                <img src="images/family-large.jpg" alt="Img" height="382" width="594">
                <div class="detail">
                    <h1>Implementing Strategic and Effective Legal Solutions</h1>   
                </div>
            </div>
        </div>

and the css is as follows 和CSS如下

    .clearfix {
    width: 960px;
    margin: 0 auto;
    }

    .clearfix:after {
        clear:both;
        content:"";
        display:block;
        line-height:0;
        height:100%;
    }

This is what it shows What it suppose to show 这就是 它要显示的内容

Your path to your image is incorrect. 您的图片路径不正确。 You can easily test this by loading in an image you know will work. 您可以通过加载您知道可以使用的图像来轻松进行测试。 Lorem Flickr is great for testing this: Lorem Flickr非常适合测试以下内容:

 .clearfix { width: 960px; margin: 0 auto; } .clearfix:after { clear:both; content:""; display:block; line-height:0; height:100%; } 
 <div id="adbox"> <div class="clearfix"> <img src="http://www.loremflickr.com/382/594" alt="Img" height="382" width="594"> <div class="detail"> <h1>Implementing Strategic and Effective Legal Solutions</h1> </div> </div> </div> 

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

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