用页面滚动滚动facebook框 [英] scroll facebook box with page scrolling

查看:110
本文介绍了用页面滚动滚动facebook框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想在我的网页上放置一个类似Facebook的框,但是这个框必须向下滚动页面滚动。作为示例,请参阅以下链接:

http://www.houzz.com/ideabooks/5953067/list?utm_source=Houzz&utm_campaign=u210&utm_medium=email&utm_content=gallery0 [ ^ ]





http://download.cnet.com/ hotspot-shield / [ ^ ]



在上面左边的例子中看到fb,twitter和google +在一个框中,当你向下滚动页面时,该框就会滚动。

i只想知道如何创建该功能。

先谢谢。

Hi i want to put a facebook like box in my webpage but this box must scroll down with the page scrolling. As an example see the following links:
http://www.houzz.com/ideabooks/5953067/list?utm_source=Houzz&utm_campaign=u210&utm_medium=email&utm_content=gallery0[^]


http://download.cnet.com/hotspot-shield/[^]

see in the above example on the left side the fb, twitter, and google+ are in one box, and that box is scrolling when you scroll down the page.
i just want to know how to create that functionality.
Thanks in advance.

推荐答案



希望你有 facebook的代码按钮

如果你没有,请转到 http://developers.facebook.com/ web / [ ^ ]



如果你想修一个div,请写一个
Hi,
Hope you have the code for facebook like button .
if you dont have,go to http://developers.facebook.com/web/[^]

If you want to fix a div,please write a
class or Id





例如:

.fixedDiv

{



eg:
.fixedDiv
{

position:fixed;
 bottom:0px;

}





更改底部,顶部,填充等的值,以获得理想的位置。



change values for bottom ,top,padding etc for your desirable position.


我相信你想用你的css设置它,如果你把你的页面属性/样式放在那里,定位如下:



w3school链接 http://w3schools.com/css/css_positioning.asp

[更新链接所以它的工作原理]

除了你的左/右/上/和边距/填充
I beleive you want to set that with your css if your placing your page properties/styles in there with the positioning as exampled here:

w3school Link http://w3schools.com/css/css_positioning.asp
[Updated link so it works]
In addition to your left/right/top/ and margins/padding


这篇关于用页面滚动滚动facebook框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆