简体   繁体   English

(仅 HTML)无法从目录和链接加载图像

[英](Just HTML) Failed to load image from both directory & link

I've tried to show an image, but it doesn't seem to load from the website or on my PC.我试图显示一张图片,但它似乎没有从网站或我的电脑上加载。 The size of the image is 400 x 400 pixels.图像大小为 400 x 400 像素。

The website I'm getting the image from is Twitter (by copying the link address of the image then the images address, getting the link from there)我从中获取图像的网站是 Twitter (通过复制图像的链接地址然后图像地址,从那里获取链接)

The file is in the same directory as the code.该文件与代码位于同一目录中。

<img src=”ImageofMyself.jpg” alt="Image of Myself">

Use the proper quotes.使用正确的引号。 You have ”, but it should be ". – yunzen你有“,但应该是”。——yunzen

You can do this by using proper quotes.您可以通过使用正确的引号来做到这一点。 you should change to "你应该把改成"

<img src="ImageofMyself.jpg" alt="Image of Myself">

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

相关问题 HTML 不会从另一个目录加载图像 - HTML won't load image from another directory 从React.native / HTMl中的.htaccess protected目录加载图像 - Load image from .htaccess protected directory in React.native / HTMl 如果目录不是从头开始,则 Html 目录链接不起作用 - Html directory link not working if the directory is not from the beginning HTML中的链接图像(包括环绕链接和内部链接)不会“链接” - Linked image in HTML (both wrapped and internal link) won't 'link' 使用相对路径进行jquery加载并直接链接到html页面 - Use relative path for both jquery load and direct link to html page HTML 不会在我刚从 zip 文件下载的 web 服务器上加载图像 - HTML won't load the image on my web server that I just downloaded from a zip file 如何ajax加载只是HTML,而不加载图像? - How to ajax load just html, without loading image? 尽管使用本地或外部链接,我的背景图像仍无法加载 - My background image failed to load despite using local or external link 将SD卡中的图片加载到HTML中 - Load image from sdcard into html 当两个目录都位于具有HTML的同一父目录中时,如何从其他目录访问目录中的文件 - How to access a file in a directory from other directory, when both are in same parent directory with HTML
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM