bootstrap官网中的返回顶部是怎么产生的。

我同样导入了, <script src="http://cdn.bootcss.com/scrollu ... 6quot;></script>
这个script文件,
也在$(document).ready(function(){});函数中写了下面的语句,但是就是不产生返回顶部的按钮。。
我的网页布局用的是栅格。

$.scrollUp({scrollName:"scrollUp",topDistance:"300",topSpeed:300,animation:"fade",animationInSpeed:200,animationOutSpeed:200,scrollText:'<i class="fa fa-angle-up"></i>',activeOverlay:!1});
已邀请:

王赛

赞同来自: 洎掵芣汎哋蕏

1、首先要加载 jquery 文件,然后加载 jquery-scollup 文件
2、打开浏览器的调试窗口,看看有没有报错

阿啊阿吖丁

赞同来自:

不知道你注意到源码里有这个代码了吗?以下的CSS插入了才能很好地显示出来!
#scrollUp {
background-color: #777;
color: #eee;
font-size: 40px;
line-height: 1;
text-align: center;
text-decoration: none;
bottom: 20px;
right: 20px;
overflow: hidden;
width: 46px;
height: 46px;
border: none;
opacity: .8;
}

scrollUp:hover{background-color:#333}

@media screen and (min-width:992px){#scrollUp{bottom:100px
}}

要回复问题请先登录注册