我正在创建一个网站,我想在CSS中创建一个导航栏。但是,导航栏不可单击。这是用HTML和CSS制作的。
包含导航栏的HTML代码:
<link rel="stylesheet" type="text/css" href="style.css">
<ul id=navlist><li class=active> Home </li>
<li> <a title="LINK: My Youtube videos” href="youtubevideosch9changes.html”> My Youtube videos </a> </li>
<li> <a title="LINK: My Flash games” href="gamesch9changes.html> My Flash games </a> </li>
<li> <a title="LINK: Rants and articles” href="Rantsandarticles.html”> Rants and articles </a>
</li>
</ul>
答案 0 :(得分:0)
使用此"
标记的结尾检查您的HTML代码。您使用了开头双引号而不是结束双引号。将"LINK: My Youtube videos”
更改为"LINK: My Youtube videos"
。
使用以下代码
<link rel="stylesheet" type="text/css" href="style.css">
<ul id=navlist><li class=active> Home </li>
<li> <a title="LINK: My Youtube videos" href="youtubevideosch9changes.html"> My Youtube videos </a> </li>
<li> <a title="LINK: My Flash games" href="gamesch9changes.html"> My Flash games </a> </li>
<li> <a title="LINK: Rants and articles" href="Rantsandarticles.html"> Rants and articles </a>
</li>
</ul>