2

友人のためにサイトを作成していますが、最初のドラフトで問題が発生しています。基本的に、うまく収まる背景画像を取得しようとしています。Dreamweaver でコードをテストすると、希望どおりに動作しますが、ライブ サイトでテストすると、背景画像が Firefox に表示されませんが、自分のコンピューターからテストすると表示されます。また、このサイトは IE でも正常に動作するようです。

ライブサイト: www.crookednosebeer.com

CSS:

(私はimgをルートしようとしているときにCSSで問題が発生すると思います)

body{
height: 100%; 
width: 100%;
background-color: #b2b2b2;
background: url(../images/trial2.gif) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
4

3 に答える 3

2

As @bfavaretto commented, you set a local system path for the CSS file that you want to use in your HTML file. You'll have to replace it with a URI relative to your WWW root so remote clients can also read it. Change your HEAD section into this:

<head>
<title>Crooked Nose</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="" />
</head>

(tested in Chrome)

Cheers!

于 2013-02-27T02:11:15.070 に答える
0

URLを引用してみてください

background: url("../images/trial2.gif") no-repeat center center fixed;
于 2013-02-27T02:06:01.707 に答える
0

「link rel」エリアの css の URL..try to use link rel="stylesheet" href="../css/style.css" type="text/css"..ahm try in chrome..

幸せなコーディング...

于 2013-02-27T02:17:34.470 に答える