[英]I need some help my pictures aren't showing up on this site i'm making
我无法在网站上显示图像,我需要一些帮助。 这是没有 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>
您需要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;">
这应该是你的代码:
<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;">
用
<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;" />
对于第一张图片
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.