0

这是我的网站http://web.njit.edu/~dp257/boilerplate/Org.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>
4

1 回答 1

3

没有带有 ID 的段落p5。只需将 ID 添加p5到第五段(或您希望页面转到的任何一个)。不需要锚或其他添加元素

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

hrefs 需要指向 URL。在导航到页面的新部分的情况下,它们需要一个 ID,这会影响 URL

演示 jsFiddle

于 2013-10-14T20:56:33.337 回答