Html “如何定位facebook”;例如;网站上的按钮
我正在某个地方的网站上尝试一个类似facebook的按钮。我尝试使用div将其定位在页面的某个部分,并在浏览器调整大小时随布局移动,但它不起作用。按钮停留在页面的左角 我怎样才能移动它 这是代码的一部分,也是我放置div的地方Html “如何定位facebook”;例如;网站上的按钮,html,css,Html,Css,我正在某个地方的网站上尝试一个类似facebook的按钮。我尝试使用div将其定位在页面的某个部分,并在浏览器调整大小时随布局移动,但它不起作用。按钮停留在页面的左角 我怎样才能移动它 这是代码的一部分,也是我放置div的地方 <script src="http://connect.facebook.net/en_US/all.js#appId=133207363431387&xfbml=1"></script><fb:like href="http
<script src="http://connect.facebook.net/en_US/all.js#appId=133207363431387&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">
身体{
背景图片:url(images/NotchTheGuru_bg.jpg);
背景位置:中心;
背景色:#000000;
背景重复:无重复;
背景位置:上中;
}
#身体内容{
位置:相对位置;
}
#fbdiv{
位置:相对位置;
左:1017px;
顶部:30px;
宽度:200px;
高度:100px;
}
我想出来了。简单的修复
我将div放在主体中,但实际上没有在div中包含“fb:like”代码
我总是把时间花在愚蠢的事情上,我从一开始就应该意识到这一点
谢谢你的回答