Resize/scale facebook like button (height and width)

安稳与你 提交于 2019-11-29 18:56:04

问题


I couldn't find anywhere (if it's possible) how to resize the whole like button (not it's iframe or the container, but the button itself with the writing and everything).

Google+ offers several versions of it's +1 button, the smallest being 15px.

For design purposes I need to change (scale) the size of the FB like button to match the layout of the site (in this particular case... scale down to 15px).

(according to FB terms and conditions scaling is permitted.)


回答1:


Although you say not the iframe, if you do scale the iframe with CSS3 it will increase the size of the button. It would probably be best to give the iframe a ID or class but something like this would work if it was the only iframe on the page:

iframe
{
transform: scale(1.5);
-ms-transform: scale(1.5); 
-webkit-transform: scale(1.5); 
-o-transform: scale(1.5); 
-moz-transform: scale(1.5); 
transform-origin: top left;
-ms-transform-origin: top left;
-webkit-transform-origin: top left;
-moz-transform-origin: top left;
-webkit-transform-origin: top left;
}

Here is an example http://www.tinydesign.co.uk/like/



来源:https://stackoverflow.com/questions/8676972/resize-scale-facebook-like-button-height-and-width

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!