之前我的链接有效,但现在他们还没有工作。此代码中是否存在特定的语法错误?谢谢。
<p>A page dedicated to the mediocrity that is me.</p>
<a class="photo_hover3" href="AboutMe.html"><img src="images/10551720_896406100374418_8341950779733681498_o.jpg" width="240" height="290" alt="picture1" onmouseover="src='images/image1.jpg'" onmouseout="src='images/10551720_896406100374418_8341950779733681498_o.jpg'"/></a>
<a href="AboutMe.html"><span class="button">Read more</span></a>
</section>
<section class="group2">
<h3>Classes</h3>
<p>A page on the classes I'm taking Spring Semester.</p>
<a class="photo_hover3" href="Classes.html"><img src="images/black-tarheel-sign-jpg.jpg" width="240" height="290" alt="picture2" onmouseover="src='images/image2.jpg'" onmouseout="src='images/black-tarheel-sign-jpg.jpg'"/></a>
<a href="Classes.html"><span class="button">Read more</span></a>
</section>
<section class="group3">
<h3>Interests</h3>
<p>A page describing my hobbies and interests.</p>
<a class="photo_hover3" href="Interests.html"><img src="images/blackwhite,camera,canon,hands,nails,photography-eec2d4683bab11e4adc6fd271cda2979_h.png" width="240" height="290" alt="picture3" onmouseover="src='images/image3.png'" onmouseout="src='images/blackwhite,camera,canon,hands,nails,photography-eec2d4683bab11e4adc6fd271cda2979_h.jpg'"/></a>
<a href="Interests.html"><span class="button">Read more</span></a>
&#13;
答案 0 :(得分:0)
正如其他人在评论中所述,您的链接正在运行,问题很可能就是您正在使用的路径。检查路径是否正确的一种方法是直接在浏览器中输入它,例如www.example.com/AboutMe.html/,如果它将您带到AboutMe页面,那么您的路径是好的,否则您将需要检查您的文件夹/文件结构并找到关于我的页面所在的位置。如果页面位于另一个文件夹中,则需要将该文件夹添加到路径中,如下所示:
www.example.com/anotherfolder/AboutMe.html
,您的链接应如下所示:
<a href="/anotherfolder/AboutMe.html">About Me</a>