官网:http://lipis.github.io/bootstrap-social/
View on GitHub : https://github.com/lipis/bootstrap-social
Download:bootstrap-social-gh-pages
How to use
- Include Bootstrap and Font AwesomeIf you haven't done that already, include the latest Bootstrap and Font Awesome in your project.
- Include the CSS or LessYou have two options for enabling the social buttons in your project: vanilla CSS or source Less. For vanilla CSS, just include the
bootstrap-social.cssfile into your project.For Less, copy thebootstrap-social.lessinto your existing Bootstrap directory and import it intobootstrap.lessvia@import "bootstrap-social.less";. Recompile when ready. - Add some buttons!Start using the buttons as you would normally do with the Bootstrap buttons that have an icon by adding the relevant class. For example:
<a class="btn btn-block btn-social btn-twitter"> <span class="fa fa-twitter"></span> Sign in with Twitter </a>Or if you just want the icon button, use it like this:
<a class="btn btn-social-icon btn-twitter"> <span class="fa fa-twitter"></span> </a>
原文/转自:分享按钮 Social Buttons for Bootstrap
本文介绍了一个为Bootstrap设计的社交按钮插件——Social Buttons for Bootstrap。该插件提供了多种社交媒体平台的图标按钮样式,如Twitter等。使用简单,只需引入Bootstrap、Font Awesome及插件提供的CSS或Less文件即可。

130

被折叠的 条评论
为什么被折叠?



