我检查确保我的图像文件夹与我的html文件处于同一级别,但图像不会显示。
NOLA蒙特梭利
<body>
<p>
<img src=Images\"Photo1.jpg" alt="Montessori Classroom" width="500" height="250">
</p>
<q>"Free the child's potential and you will transform him into the world."</q>
<i>Maria Montessori</i>
答案 0 :(得分:1)
引号需要围绕图像的整个网址,而不仅仅是&#34; Photo1.jpg&#34;部分。此外,您应该对网站使用正斜杠(&#34; /&#34;而不是&#34; \&#34;)。例如:
<img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500px" height="250px">
答案 1 :(得分:1)
更改引号可以解决您的问题..
<img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500px" height="250px">
答案 2 :(得分:1)
我认为你错放了双引号img src=Images\"Photo1.jpg"
这不会起作用:
试试这个:
<body>
<p>
<img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500" height="250">
</p>
<q>"Free the child's potential and you will transform him into the world."</q>
<i>Maria Montessori</i>
</body>
答案 3 :(得分:1)
双引号必须像这样包围整个网址
<img src="Images/Photo1.jpg">
答案 4 :(得分:0)
请尝试以下操作,看看是否有帮助..
<body>
<p>
<img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500" height="250" />
</p>
<q>"Free the child's potential and you will transform him into the world."</q>
<i>Maria Montessori</i>
</body>