2011-07-14 18 views
-1

私は特定の場所のウェブサイトのボタンのようなfacebookを試しています。私は、divの位置をページの特定の部分に配置し、ブラウザのサイズが変更されるとレイアウトと共に移動しようとしましたが、動作しません。ボタンはページの左隅にとどまります。ウェブサイト上でfacebookのようなボタンを配置する方法

どうすれば移動できますか?ここで

は、コードの一部であると私はdivの

<script src="http://connect.facebook.net/en_US/all.js#appId=133207363431387&amp;xfbml=1"></script><fb:like href="http://notchtheguru.com" send="true" layout="box_count" width="450" show_faces="true" colorscheme="dark" font="arial"></fb:like> 
</head> 
<style type="text/css"> 
body { 
    background-image: url(images/NotchTheGuru_bg.jpg); 
    background-position: center; 
    background-color: #000000; 
    background-repeat: no-repeat; 
    background-position: top center; 
} 

#bodyContent { 
    position: relative; 

} 

#fbdiv { 
    position: relative; 
    left: 1017px; 
    top: 30px; 
    width: 200px; 
    height: 100px; 
} 



</style> 
<body> 

<div id="fbdiv"><div id="fb-root"></div></div> 
<center> 
<div id="bodyContent"> 

答えて

0

を配置した場所私はそれを考え出しました。簡単な修正。

私はdivをbodyに配置しましたが、div内に実際には "fb:like"コードは含めませんでした。

私はいつも最初のsmhから気づいたはずの愚かなものに時間を費やします。

お返事ありがとうございます。

関連する問題