0

このコードの何が問題になっていますか? 私はこれに何時間も取り組んできましたが、なぜbutton.pngが表示されるのかわかりませんが、リンクは「1つの」divの場所にあります..?

#one
{
position: fixed;
left:225px;
top:702px;
}

.button
{
display: block;
width: 40px;
height: 40px;
background: url('images/button.png') bottom;
text-indent: -99999px;
}

.button:hover
{
background-position: 0 0;
background-color: transparent; 
border-style: none;
}

_

<body>
    <div id="map">
        <img src="images/map.png"/>
    </div>

    <div id="one">
        <a class="button" href="images/one.jpg"/>
            <img src="images/button.png"/>
        </a> 
    </div>

</body>
4

1 に答える 1