1

これは奇妙なことです。問題のサイトはblog.andrebatista.infoで、blogger.comでホストされています。ブロガーテンプレートをメインのウェブサイトwww.andrebatista.infoのものと同じように見せようとしています。

何らかの理由でブログアドレスに直接アクセスすると、ChromeとSafariですべての背景画像を表示できません...すべて。

ただし、最初にwww.andrebatista.infoにアクセスしてからブログにアクセスすると、問題なくレンダリングされますか?¿

カスタマイズする方法は、ブロガーテンプレートのheadタグの最後にメインサイトのスタイルシートへのリンクを追加することです。そのスタイルシートは以下に表示されます。

* {マージン:0; パディング:0; border:0; }

html,body {
 background:#064169 url(http://www.andrebatista.info/images/main_gradient_slice.jpg) repeat-x;
 font-family: Arial, "MS Trebuchet", sans-serif;
 font-size:18px;
}

#main_wrapper{
 margin: 0 auto;
 width:1024px;
}
 #header{
  background: url(http://www.andrebatista.info/images/header.jpg);
  height:133px;
  border:none;
  margin:0;
 }

 #menu_wrapper{
  background: url(http://www.andrebatista.info/images/menu.jpg);
  height:34px;
  overflow:hidden;

 }
  #menu_wrapper .menu_item{
   color:white;
   float: left;
   border: 1 px solid red;
   height: 34px;
   padding-top:10px; 
   text-align:center;
   width:100px;

  }

  #menu_wrapper .first{
   padding-left:240px;
   float:left;
   width:100px;

  }
  #menu_wrapper .active,#menu_wrapper .menu_item:hover{
   background-color:white;
   color:Teal;
   cursor: pointer;
  }

 #content_area_wrapper{
  background: url(http://www.andrebatista.info/images/body_bg_slice.jpg) repeat-y;
 }
  #content_area{
   min-height:524px;
   background: url(http://www.andrebatista.info/images/main_content_top.jpg) repeat-x;
  }
   #main_banner{
    background: url(http://www.andrebatista.info/images/main_banner.jpg) no-repeat center center;
    width:662px;
    height:338px;
    margin: 0 auto;

   }
   #main_banner div{
    color:white;
    padding-left:47px;
    padding-right:164px;
    padding-top:105px;
   }
   #text_area{
    overflow:hidden;
    width:662px;
    margin:0 auto;
    padding:14px;
   }
    #contentList{
     padding:0 20px 20px 20px;
    }
    #text_area .left{
     width:50%;
     float:left;
    }
    #text_area .left{
     width:50%;
     float:right;    
    }

 #footer2{
  background: url(http://www.andrebatista.info/images/footer.jpg);
  height:62px;
 }

 #footer{
  background: url(http://www.andrebatista.info/images/footer.jpg);
  height:62px;
 }

私が見逃している可能性のあるものについて何かアイデアはありますか?

4

3 に答える 3

2

CSSやブログがホストされているサーバーの問題ではありませんが、Webサイトがホストされているサーバーの問題です。Fiddlerでトラフィックを検査すると、画像の代わりに次の応答が返されます。

HTTP/1.1 302 Found
Date: Fri, 05 Mar 2010 23:43:52 GMT
Server: Apache
Location: http://www.hosting.zymic.com/403
Content-Length: 216
Content-Type: text/html; charset=iso-8859-1
Via: 1.1 www.andrebatista.info
Connection: close

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://www.hosting.zymic.com/403">here</a>.</p>
</body></html>

これは、Refererヘッダーに基づくある種のアンチホットリンク対策の結果だと思います。

于 2010-03-06T00:00:19.107 に答える
1

さて、Firefoxに行くと、「クエリに一致する投稿はありません」というエラーが表示され、サーバーが正しく設定されていないのではないかと思います。

編集:Chromeにも当てはまります

于 2010-03-05T23:36:48.167 に答える
0

URLを引用符で囲んでみてください。(他の回答のように、サーバーの問題ではない場合、Webkitは「://」で窒息している可能性があります。)

background:#064169 url("http://www.andrebatista.info/images/main_gradient_slice.jpg") repeat-x;

詳細:CSSの背景画像-正しい使用法は何ですか?

于 2010-03-05T23:37:21.810 に答える