小编Val*_* S.的帖子

如何仅在需要时显示Bootstrap 3 popover

我有这个popover,有一个滚动条

HTML

<ul class="navbar-nav pull-right"> 
<li><a href="#" data-toggle="popover" title="Notifications" data-html="true" data-content="<a href='?Profile'><div class='pop-text'>Notification 1</div></a><hr /><a href='?Profile'><div class='pop-text'>Notification 2</div></a><hr /><a href='?Profile'><div class='pop-text'>Notification 3</div></a><hr /><a href='?Profile'><div class='pop-text'>Notification 4</div></a><hr /><div><p id='foot-notification-pop'><a href='?notification'>Show all</a></p></div>">Notification</a></li>
</ul>
Run Code Online (Sandbox Code Playgroud)

CSS

.popover-content {
  height: 200px;
  overflow-y: scroll;
 }
Run Code Online (Sandbox Code Playgroud)

我想只在需要时显示滚动条,只有当popover内容的高度超过200px的高度时才会显示.当滚动条始终显示时,但当高度小于200px时,不可点击(当然).我该怎么做?任何帮助将不胜感激.谢谢!

html css scroll popover twitter-bootstrap

6
推荐指数
2
解决办法
2万
查看次数

Bootstrap 3 popover滚动不起作用

HTML

<div class="pop-div">
    <a href="#" data-toggle="popover" title="<strong>Notifiche</strong>" data-html="true" data-content="Notification 1<hr />Notification 2<hr />Notification 3 <hr />Notification 4">Notifications</a>
    </div>
Run Code Online (Sandbox Code Playgroud)

JAVASCRIPT

$('[data-toggle="popover"]').popover({placement: 'bottom'});

        //hide popover when click outside
        $('body').on('click', function (e) {
            $('[data-toggle="popover"]').each(function () {
                if ($(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
                    $(this).popover('hide');
                }
            });
        });
Run Code Online (Sandbox Code Playgroud)

CSS

.pop-div .popover-content {
height: 50px;
overflow-y: scroll;
Run Code Online (Sandbox Code Playgroud)

}

我在上面的代码中有这个popover.我正在尝试在弹出窗口内容的左侧显示滚动条,但此代码不起作用.任何帮助将不胜感激.谢谢!

html javascript css popover twitter-bootstrap

1
推荐指数
1
解决办法
9216
查看次数

Firebase Android:在注册时启用用户

我正在使用Firebase 9.4.0在我的应用中注册和登录用户.

我有一个注册表,我希望管理员在被要求注册时可以启用或禁用(通过代码,从应用程序内部的应用程序)用户.

换句话说,我希望在生效之前,管理员可以批准(通过代码,而不是使用Firebase控制台)注册用户.

我怎么能得到这个?我没有找到足够完整的答案来回答这个问题.

谢谢!

android firebase firebase-authentication

1
推荐指数
1
解决办法
832
查看次数