0

ブラウザーに問題があり、別の PC で同じブラウザーを使用しても問題が発生します。

私のリンクは背景の上に配置されていません。Firefox を使用すると、不透明度または配置が機能しません。

ここでサイトを見ることができますwww.haelu.co.nf

HTML:

<!DOCTYPE html>
<html>
<head>
<title>Haelu</title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

<body>



<a id="button1" href="https://soundcloud.com/haelu">
<img src="images/Button1.png" border="0"></a> 

<a id="button2" href="/videos.html">
<img border="0" src="images/Button2.png" ></a>

</body>

</html>

外部 CSS:

html { 
    background: url(images/WebBack1.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

@font-face {
    font-family: webfont;
    src: url(thinnyness.ttf);
    src: local('Delicious'), local(Delicious'),
    url(thinnyness.ttf) format('truetype');
}

body {
    font-family:Webfont;
    align: center;
}

#button1 { 
    position: absolute; 
    top: 364px; 
    left: 557px; 
    opacity:0.1;
}

#button1:hover {
    position: absolute; 
    top: 364px; 
    left: 557px; 
    opacity:1.0;
}

#button2 { 
    position: absolute; 
    top: 292px; 
    left: 648px; 
    opacity:0.1;
}   

#button2:hover {
    position: absolute; 
    top: 292px; 
    left: 648px; 
    opacity:1.0;
}

.center {
    margin: 0 auto;
    width: 500px;
}

#container {
   position: absolute;
   top: 50%;
   margin-top: -130px;/* half of #content height*/
   left: 0;
   width: 100%;
}
4

1 に答える 1

0

あなたの問題はCSSの構文エラーだと思います:

@font-face {
    font-family: webfont;
    src: url(thinnyness.ttf);
    src: local('Delicious'), local(Delicious'),
    url(thinnyness.ttf) format('truetype');
}

local(Delicious')2 番目の宣言に先頭のアポストロフィがありません。これにより、スタイルシート全体が破損し、ポジショニングが機能しなくなります。

于 2013-10-24T22:54:17.737 に答える