我需要一些帮助,我的照片不会出现在我正在制作的网站上

时间:2017-03-08 17:53:38

标签: html image

我无法让图片显示在网站上,我需要一些帮助。这是没有css代码的代码。如果有人能帮助我,我真的很感激。下面是第一张图片的链接:https://images-na.ssl-images-amazon.com/images/G/01/img15/pet-products/small-tiles/30423_pets-products_january-site-flip_3-cathealth_short-tile_592x304.CB286975940.jpg。如果有人能帮我解决第一个问题,我会非常感激。

<!DOCTYPE html>
<html>
    <head>
        <style>

        </style>
    </head> 
<body>

    <h1>  I thought the traditional way was a little boring so I made this. </h1>
    <h2> I added some of your favorite things to this site. </h2>
    <h3> </h3>

    <img scr="Cats.jpg" style="width:592;height:304;">  
    <br>
    <br>
    <img scr="P!ATD.jpg" style="width:400;height:400;">
    <br>
    <br>
    <img scr="MCR.jpg" style="width:450;height:450;">


    <p> Alexis </p>
    <p> Would you give me the honor in taking you to prom??? </p>
</body>
</html>

3 个答案:

答案 0 :(得分:0)

您需要src属性(不是scr,拼写错误),您应该在宽度/高度上指定一个单位(像素可能px)。

<img scr="Cats.jpg" style="width:592;height:304;">

代替:

<img src="https://images-na.ssl-images-amazon.com/images/G/01/img15/pet-products/small-tiles/30423_pets-products_january-site-flip_3-cathealth_short-tile_592x304._CB286975940_.jpg" style="width:592px;height:304px;">

答案 1 :(得分:0)

这应该是你的代码:

<img scr="https://images-na.ssl-images-amazon.com/images/G/01/img15/pet-products/small-tiles/30423_pets-products_january-site-flip_3-cathealth_short-tile_592x304.CB286975940.jpg" style="width:592;height:304;">  

答案 2 :(得分:0)

使用

<img src="https://images-na.ssl-images-amazon.com/images/G/01/img15/pet-products/small-tiles/30423_pets-products_january-site-flip_3-cathealth_short-tile_592x304._CB286975940_.jpg" style="width:592px; height:304px;" />

第一张图片