2013-10-14 1 views
0

여기 내 사이트입니다 http://web.njit.edu/~dp257/boilerplate/Org.html 아래쪽에 있기 때문에 나는 "World Wide Web"에 대해이 기능을 사용하고 있습니다.이 기능을 클릭하면 해당 정의를 제외한 나머지 페이지가 삭제되고 머리는 고치려합니다. 이. 사이드 바에서 월드 와이드 웹 링크를 클릭하면 해당 기능을 볼 수 있습니다.어떻게하면 html로 된 링크에서 페이지가 뛰어 내릴 수 있습니까?

<div id="wrapper"> 
     <header id="name" align="center">IS117 TERMS</header> 
     <div id="primary_links" align="center"> 
      <ul> 
       <li><a href="website.html">Home</a></li> 
       <li><a href="CSS.html">CSS</a></li> 
       <li><a href="HTML.html">HTML</a></li> 
       <li><a href="Org.html">Organizations</a></li> 
       <li><a href="Tech.html">Technologies</a></li> 

      </ul> 
     </div> 

      <div id="content"> 
       <h1>Organizations</h1> 

     <p> 
      Client- the computers and devices that use web applications 
     </p> 
     <p> 
      Internet exchange point-a point in the world that connect many WAN’s 
     </p> 
     <p> 
      Internet- global system of interconnected networks 
     </p> 
     <p> 
     Internet service provider- Someone or company who owns a WAN and leases its access to their network 
     </p> 
     <p> 
      Intranet- network where only employees can run web applications typically they are in the same area 
     </p> 
     <p> 
      Local area network- a small network of computers that are near each other and communicate over short distances 
     </p> 
     <p> 
      Network-a system that allows clients and servers to communicate 
     </p> 
     <p> 
      W3C-world wide web consortium, group that develops standards, for code 
     </p> 
     <p> 
      Web browser-programs that access web pages 
     </p> 
     <p> 
      Web server- holds the files that make up a web application 
     </p> 

     <p> 
      WHATWG-community of people interested in evolving html, big source of info 
     </p> 
     <p> 
      Wide area network-2 or more LAN’s connected by a router 
     </p> 

     <p id = "p5"> 
      World wide web-components that bring together a web page to your desktop over the internet 
     </p> 



     </div> <!-- content --> 


    <div id="sidebar"> 
    <div id="secondary_links"> 
     <ul> 
      <li><a href="#">Client</a></li> 
      <li><a href="#">Internet Exchange Point</a></li> 
      <li><a href="#">Internet</a></li> 
      <li><a href="#">Internet Service Provide</a></li> 
      <li><a href="#">Intranet</a></li> 
      <li><a href="#">Local Area Network</a></li> 
      <li><a href="#">Network</a></li> 
      <li><a href="#">W3C</a></li> 
      <li><a href="#">Web Browser</a></li> 
      <li><a href="#">Web Server</a></li> 
      <li><a href="#">WHATWG</a></li> 
      <li><a href="#">Wide Area Network</a></li> 
      <li><a href="#p5">World Wide Web</a></li>    
     </ul> 
    </div> 
</div> 
</div> 
+1

Um..it 아무것도하지 않습니다 영향을하는 대신 ID를 필요로? 해시 태그에 연결됩니다. – tomca32

+0

나는 방화산에서 href를 "# h1"로 변경하고 http://web.njit.edu/~dp257/boilerplate/Org.html#h1 – Miller

+0

url로 pivided 한 사이트에서 작동하는 링크를 클릭하십시오. 페이지 링크를 클릭하면 아무 것도하지 않지만 질문에있는 코드는 실제로''를 지정하므로 제대로 작동합니다. 문제가 무엇인지 더 명확히 할 수 있습니까? – nnnnnn

답변

3

ID가 p5 인 단락이 없습니다. ID 번호 p5을 다섯 번째 단락 (또는 페이지를 이동하려는 페이지)에 추가하기 만하면됩니다. 앵커가 필요하거나 다른 추가 요소 URL을 가리 키도록

<p id='p5'> 
    Intranet- network where only employees can run web applications ... 
</p> 

href의 필요가 없습니다. 페이지의 새로운 섹션으로 이동의 경우, 그들은 다음 URL

Demo jsFiddle

관련 문제