How can I list two Linkedin Follow Buttons in a Twitter Bootstrap Dropdown

半城伤御伤魂 提交于 2019-11-29 13:02:44

First i found the buttons load slow sometimes so you could open the drop-down before your buttons loads.

I couldn't test on IE. I found a solution for firefox. The linkedin api (js) loads a div in a iframe in a iframe in a span in a span (or something like) that. I found the button iframes load but got a width of only 2px. The 2 px width seems to be caused by the display:none of the ul.dropdown-menu. My solution replace the display with visibility so the div got space:

 ul.dropdown-menu
 {
 display: block; visibility: hidden;
 }  

.open > .dropdown-menu
{
visibility: visible;
}   

See: http://jsfiddle.net/bassjobsen/dsasu/1/

Instead of the visibilty you also could load the content elsewhere with space and copy it to the dropdown on first click.

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