I have the following code:
<div class="fb-login-button" data-max-rows="1" data-size="large" data-show-faces="false" data-auto-logout-link="true" data-login-text="Sign in with Facebook"></div>
我希望能够以自定义的大小来改变按钮的宽度和高度。
这个可能吗?
我尝试使用CSS技巧来操作iframe,但似乎不起作用,例如将其添加到检查元素中的CSS中:
._4z_b{
background: #4c69ba;
background: -webkit-gradient(linear, center top, center bottom, from(#4c69ba), to(#3b55a0));
background: -webkit-linear-gradient(#4c69ba, #3b55a0);
border-color: #4c69ba;
-webkit-border-radius: 2px;
color: #fff;
font-family: "Helvetica neue";
-webkit-font-smoothing: antialiased;
text-shadow: 0 -1px 0 #354c8c;
width: 249px;
height: 36px;
}
我该如何覆盖 Facebook 创建的 iframe,以便加入自定义大小?
谢谢。