问:我不断收到一条消息,告诉我为 numbers-01 添加图像标签,但它们在那里,我可以看到图像并单击它
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nick Pettit</title> </head> <body> <header> <a href="index.html"> <h1>Nick Pettit</h1> <h2>设计师</h2> </a> <nav> <ul> <li><a href="index.html">作品集</a></li> < li><a href="about.html">关于</a></li> <li><a href="contact.html">联系方式</a></li> </ul> </nav > </header> <section> <ul> <li> <a href="img/numbers-01.jpg"> <img src="numbers-01.jpg" alt=""> </a> </li> <li> <a href="img/numbers-02"> <img src="numbers-02.jpg" alt=""> </a> </li> < li> <a href="img/numbers-06.jpg"> <img src="numbers-06.jpg" alt=""> </a> </li> </ul> </section> <footer >jpg" alt=""> </a> </li> </ul> </section> <footer>jpg" alt=""> </a> </li> </ul> </section> <footer>
答:删除链接...那些是a标签...
你的 ul 标签中应该只有 3 个 li 标签,每个 li 标签中有一个图像标签......像这样:
< ul >
< li > < img... /> </ li > < li > < img... /> </ li > < li > < img... /> </ li > </ ul >