我让Facebook在我的网站登录登录按钮代码
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();">
</fb:login-button>
我可以将此按钮更改为常用按钮或更改其大小
答案 0 :(得分:1)
<fb:login-button size="large"
scope="public_profile,email"
onlogin="checkLoginState();">
或
size="xlarge"
像这样你将使用。
答案 1 :(得分:0)
在登录按钮中添加width属性:
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();" width="200px">
</fb:login-button>
否则:
在div中添加按钮并将css样式应用于div。
<div class="site_login">
<div class="facebook" >
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();" width="200px">
</fb:login-button>
</div>
现在你可以应用这样的风格:
.facebook {
width:300px;
heigth:100px;
}
参考:Here