当前位置:  开发笔记 > 编程语言 > 正文

超链接消失了

如何解决《超链接消失了》经验,为你挑选了1个好方法。

这很奇怪,我以前从未见过这个,也许我的计算机需要重新启动但是:我在网页上添加的每个链接都在消失.你可以在这里看到一个实例.

这是我的样式表:

/*------- UNIVERSAL -------*/
body
{
    background: #333333;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.tleft { text-align: left; }
.tright { text-align: right; }

a
{
    text-decoration: none;
    color: #e6267c;
    font-weight: bold;
}

a :hover{ border-bottom: 1px #e6267c dashed; }

/*------- PAGE PARTS -------*/
#container
{
    position: relative;
    margin: 0 auto;
    width: 760px;
    padding: 0 70px 0 70px;
    background: url(images/background.png);
}

#top { height: 141px; }


/*------- TOP -------*/
#logo
{
    background: url(images/logo.png);
    display: block;
    width: 263px;
    height: 141px;
    position: absolute;
    top: 0;
    left: 50px;
    text-indent: -9000px;
}

#addjoke
{
    background: url(images/addjoke.png) bottom left;
    display: block;
    width: 242px;
    height: 65px;
    position: absolute;
    top: 0;
    left: 360px;
    text-indent: -9000px;
}

#addjoke:hover { height: 95px; }

#quickbar
{
    background: url(images/quickbar.png);
    width: 160px;
    height: 69px;
    position: absolute;
    top: 0;
    left: 670px;
}

#quickbar form, a { display: none; }


/*------- MENU -------*/
#menu
{
    color: white;
    background: url(images/menumiddle.png) repeat-y;
    float: left;
    width: 207px;
}

#menu div.box
{
    margin-left: 20px;
    margin-right: 28px;
}

#menu span.top
{
    margin: 0;
    display: block;
    height: 10px;
    background: url(images/menutop.png);
}

#menu span.bottom
{
    margin: 0;
    display: block;
    height: 10px;
    background: url(images/menubottom.png);
}

#menu h2
{
    margin: 0;
    height: 31px;
    text-indent: -9000px;
}

#menu ul li
{
    padding-left: 15px;
    background: url(images/menubullet.png) left 4px no-repeat;
}

/*navigation*/
#navigation { background: url(images/navigation.png); }


/*youraccount*/
#youraccount { background: url(images/youraccount.png); }
img.avatar
{
    float: left;
    margin-right: 10px;
}
#menu_login { clear: both; margin-top: 20px; margin-bottom: 20px; }
#menu_login input
{
    padding: 2px 5px 2px 5px;
    color: white;
    background: black;
    border: 2px solid white;
    width: 145px;
}
#menu_login label.label_password { display: block; margin-top: 10px; }
#menu_login div
{
    margin-top: 5px;
    text-align: right;
}
#menu_login button
{
    text-indent: -9000px;
    border: 0;
    width: 57px;
    height: 28px;
    background: transparent url(images/loginbutton.png);
    cursor: pointer;
  cursor: hand;

}
#menu_login label
{
    font-weight: bold;
}


/*toprated*/
#toprated { background: url(images/toprated.png); }

/*newsletter*/
#newsletter { background: url(images/newsletter.png); }

/*recentcomments*/
#recentcomments { background: url(images/recentcomments.png); }


/*------- FOOTER -------*/
#footer
{
    background: url(images/footer.png);
    width: 779px;
    height: 57px;
    margin: 0 auto;
}

这是我的XHTML(尚未完成):




    

        Conforming XHTML 1.0 Strict Template
        
        
        
        

         
        

    

    

        

THE WEREWOLF AND ME

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam blandit est eu lectus. Sed augue tortor, vehicula in, condimentum eget, tempor in, lectus. Integer enim leo, aliquam eget, hendrerit vel, laoreet a, turpis. Quisque sit amet ligula at quam condimentum ultricies. Sed molestie dolor non tellus. Vestibulum luctus nisi eget metus. Integer semper vestibulum nisl. Proin vel libero ac justo euismod sollicitudin. Duis a ligula sit amet quam fermentum convallis. Quisque tempus iaculis risus. Cras et libero vehicula lorem ultrices volutpat. Mauris quam quam, blandit et, facilisis in, sodales nec, libero. In massa tellus, varius non, luctus eu, facilisis rutrum, odio. Vivamus congue lacus quis metus.

Nunc ultrices nisi ut tellus. In placerat tempus quam. Nulla dolor nulla, dictum eget, auctor a, rutrum sit amet, ante. Sed scelerisque est. Vestibulum arcu purus, dignissim nec, rhoncus id, sodales eu, quam. Nullam congue hendrerit enim. Phasellus risus. Pellentesque lacus sem, luctus tempus.

Submitted By: admin
Date Submitted: 26/2/09
Views: 1891
Average Rating: 4.5 / 5

Comments

No Avatar

Ryan Polosky

12 March 09

I found that joke really funny!

No Avatar

Laura Brauman

12 March 09

Nunc ultrices nisi ut tellus. In placerat tempus quam. Nulla dolor nulla, dictum eget, auctor a, rutrum sit amet, ante. Sed scelerisque est. Vestibulum arcu purus, dignissim nec, rhoncus id, sodales eu, quam. Nullam congue hendrerit enim. Phasellus risus. Pellentesque lacus sem, luctus tempus.

No Avatar

James Brauman

10 March 09

Haha! Good stuff!

Post Comment

No Avatar

整个

    "导航"标题下方正在消失,因为它充满了超链接.



    1> David M..:

    这条线将它们击倒:

    #quickbar form, a { display:none; }
    

推荐阅读
ERIK又
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有