0

私のウェブページでは、上部のロゴが中央付近に設定されています。そのハイパーリンクはホームページに戻るように設定されていますが、明確な小さなストリップがあり、ハイパーリンクの一部が左下隅から最後まで実行されています。ページ。これを削除するにはどうすればよいですか?

コードは以下のとおりです: Main Html

<!doctype html>

 html lang="en">
<head>
<meta charset="utf-8" />
<title>Spruce Films</title>
<link href="mainStyle.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
<a href="index.html"><img src="spruce.png"/></a>    

<div id="tabs">
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="current.html">Current Projects</a>
<a href="finished.html">Finished Projects</a>
<a href="contacts.html">Contacts & Links</a>
<a href="store.html">Store  </a>

<div id="top_ad">
        <script type="text/javascript"><!--
        google_ad_client = "ca-pub-6336861109904863";
        /* Spruce Films Header */
        google_ad_slot = "1175620153";
        google_ad_width = 728;
        google_ad_height = 90;
        //-->
        </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
</div>

<footer id="the_footer">
        Designed and Coded by Austin Choncek Copyright &copy;            SpruceFilms.com All Rights Reserved.
</footer>
     </body>
     </html>

そして、CSSページは以下のとおりです。

    img{
border: 0;
    margin-left: 295px; 
margin-top: -8px;
width: 750px;
height: 110;

    }

    body {
background-image: url(background.png);
background-repeat: repeat-no;
    }

    #tabs{
    border-left: 2px red;
    border-right: 2px #450101;
    border-right-style: solid;
    border-left-style: solid;
    position: absolute;
    width: 746px;
    height: 25px;
    top: 110px;
    left: 308px;

    }   

    a{
font-family: Tahoma;
padding-right: 20px;
padding-left: 5px;
color: orange;
font-size: 20px;
TEXT-DECORATION: NONE;
    }

     a:visited{
    color: orange;
    text-decoration: none;
    }
    a:hover{
    color: red;
    text-decoration: none;
    }
     a:active{
    color: blue;
    text-decoration: none;
    }
    #top_ad{
margin: 5px 5px 10px 10px;
width: 728px;
height: 90px;
    }

    #the_footer{
    clear:both;
    text-align:center;
    padding:20px;
    border-top: 2px solid white;
    color: orange;
    }
4

1 に答える 1

0

HTML:

<!doctype html>

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Spruce Films</title>
        <link href="mainStyle.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="homepagelink">
            <a href="index.html"><img src="spruce.png"/></a>
        </div>

        <div id="tabs">
            <a href="index.html">Home</a>
            <a href="about.html">About</a>
            <a href="current.html">Current Projects</a>
            <a href="finished.html">Finished Projects</a>
            <a href="contacts.html">Contacts & Links</a>
            <a href="store.html">Store  </a>
        </div>

        <div id="top_ad">
            <script type="text/javascript"><!--
    google_ad_client = "ca-pub-6336861109904863";
    /* Spruce Films Header */
    google_ad_slot = "1175620153";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
            </script>
            <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </script>
        </div>

        <footer id="the_footer">
    Designed and Coded by Austin Choncek Copyright &copy;            SpruceFilms.com All Rights Reserved.
        </footer>
    </body>
</html>

CSS:

body {
    background-image: url(background.png);
    background-repeat: repeat-no;
}

#homepagelink *{
    width: 750px;
    height: 110px;
}

#homepagelink a{
    margin-left: 295px;
    margin-top: -8px;
    display: block;
}

#tabs{
    border-left: 2px red;
    border-right: 2px #450101;
    border-right-style: solid;
    border-left-style: solid;
    position: absolute;
    width: 746px;
    height: 25px;
    top: 110px;
    left: 308px;
}   

#tabs a{
    font-family: Tahoma;
    padding-right: 20px;
    padding-left: 5px;
    color: orange;
    font-size: 20px;
    TEXT-DECORATION: NONE;
}

a:visited{
    color: orange;
    text-decoration: none;
}

a:hover{
    color: red;
    text-decoration: none;
}

a:active{
    color: blue;
    text-decoration: none;
}

#top_ad{
    margin: 5px 5px 10px 10px;
    width: 728px;
    height: 90px;
}

#the_footer{
    clear: both;
    text-align: center;
    padding: 20px;
    border-top: 2px solid white;
    color: orange;
}

Iron (Chrome フォーク) で期待どおりに動作します。

于 2013-04-10T22:43:36.870 に答える