调整大小/缩放类似 Facebook 的按钮(高度和宽度)
我找不到任何地方(如果可能的话)如何调整整个类似按钮的大小(不是 iframe 或容器,而是按钮本身以及文字和所有内容)。
Google+ 提供了多个版本的 +1 按钮,最小的为 15 像素。
出于设计目的,我需要更改(缩放)类似 FB 的按钮的大小以匹配网站的布局(在这种特殊情况下......缩小到 15px)。
(根据 FB 条款和条件,允许缩放。)
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.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然你说不是 iframe,但如果你使用 CSS3 缩放 iframe,它会增加按钮的大小。最好给 iframe 一个 ID 或类,但如果它是页面上唯一的 iframe,这样的东西就可以工作:
这是一个示例 http://www.tinydesign.co.uk/like/
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:
Here is an example http://www.tinydesign.co.uk/like/