twitter-bootstrap Angularjs 花式滚动条
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19195297/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Angularjs fancy scrollbar
提问by Amritpal singh
I am using Angulardirectives for Twitter Bootstrapfor my product. There are many directives available in that for UI but I am unable to find Fancy scrollbarUI anywhere.
我正在为我的产品使用Twitter Bootstrap 的Angular指令。有许多可用于 UI 的指令,但我无法在任何地方找到Fancy 滚动条UI。

Is there any directive build in angularjs for fancy scrollbar. Please suggest.

angularjs 中是否有任何指令构建用于花式滚动条。请建议。
回答by Asaf David
I know this post is a bit old and I guess it won't help you, but someone might find it useful. I just released a new directive that does exactly what you were looking for, It's a pure AngularJS scroll bar with no jquery dependencies.
我知道这篇文章有点旧,我想它不会帮助你,但有人可能会觉得它很有用。我刚刚发布了一个新指令,它完全符合您的要求,它是一个纯 AngularJS 滚动条,没有 jquery 依赖项。
https://github.com/asafdav/ng-scrollbar
https://github.com/asafdav/ng-scrollbar
Hope it helps someone.
希望它可以帮助某人。
回答by waskito
You can try angular-perfect-scrollbar. It's angular directive for perfect-scrollbar.
您可以尝试angular-perfect-scrollbar。这是Perfect-scrollbar的角度指令。
回答by Erstad.Stephen
There is not a "fancy scrollbar" built into Angular Bootstrap.
Angular Bootstrap 中没有内置“花哨的滚动条”。
I am not aware of any other options.
我不知道还有其他选择。
You could build your own :
你可以建立自己的:
http://www.ng-newsletter.com/posts/directives.html
http://www.ng-newsletter.com/posts/directives.html
http://docs.angularjs.org/guide/directive
http://docs.angularjs.org/guide/directive
http://css-tricks.com/custom-scrollbars-in-webkit/
http://css-tricks.com/custom-scrollbars-in-webkit/
You are going to run into a lot of cross browser compatibility issues though since styling controls like that is problematic at best.
你会遇到很多跨浏览器兼容性问题,因为像这样的样式控件充其量是有问题的。

