更改footer脚本为PartialView,完善返回顶端按钮,适配全屏与各种屏幕大小不同滚动条点击响应

This commit is contained in:
Argo-Lenovo 2016-11-02 13:45:49 +08:00
parent ea5229cfbe
commit 7350a11a6c
8 changed files with 33 additions and 46 deletions

View File

@ -235,6 +235,7 @@
<Content Include="Views\Shared\GroupConfig.cshtml" />
<Content Include="Views\Shared\Content.cshtml" />
<Content Include="Views\Admin\Profiles.cshtml" />
<Content Include="Views\Shared\Footer.cshtml" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>

View File

@ -140,13 +140,12 @@
bottom: 40px;
right: 0;
top: 94px;
overflow: hidden;
overflow: auto;
}
.content-body iframe {
width: 100%;
border: none;
height: 100%;
overflow: auto;
overflow: hidden;
}
}

View File

@ -175,9 +175,15 @@ $(function () {
}, "请填写正确的IP地址");
}
// tool tips
$('.tooltips').tooltip();
// popovers
$('.popovers').popover();
$(".go-top").click(function (e) {
e.preventDefault();
$('#main-content').animate({
$('#main-content, .content-body, body').animate({
scrollTop: 0
}, 200);
});

View File

@ -71,10 +71,4 @@ $(function () {
//$("html").niceScroll({styler:"fb",cursorcolor:"#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: '', zindex: '1000', scrollspeed: 100, mousescrollstep: 60});
//$(".table-responsive").niceScroll({ styler: "fb", cursorcolor: "#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled: false, cursorborder: '', zindex: '1000', horizrailenabled: true });
// tool tips
$('.tooltips').tooltip();
// popovers
$('.popovers').popover();
})(jQuery);

View File

@ -0,0 +1,10 @@
<!--footer start-->
<footer class="site-footer">
<div class="text-center">
<span>2016 © 通用后台管理系统</span>
<a href="#" class="go-top tooltips" data-placement="left" data-original-title="返回顶部">
<i class="fa fa-angle-up"></i>
</a>
</div>
</footer>
<!--footer end-->

View File

@ -1,14 +1,11 @@
_Layout.cshtml
/Home/Login
-------> _Admin.cshtml
/Admin/Index
--------------> _Default.cshtml
/Admin/Users
-------> _Normal.cshtml
/Home/Terminals
--------------> _Fix.cshtml
/Home/Rules
_Layout.cshtml
/Home/Login
-------> _Admin.cshtml
/Admin/Index
--------------> _Default.cshtml
/Admin/Users
-------> _Normal.cshtml

View File

@ -31,16 +31,6 @@
</div>
</section>
</section>
<!--footer start-->
<footer class="site-footer">
<div class="text-center">
2016 © 红云红河集团.
<a href="#" class="go-top tooltips" data-placement="left" data-original-title="返回顶部">
<i class="fa fa-angle-up"></i>
</a>
</div>
</footer>
<!--footer end-->
@Html.Partial("Footer")
</section>
@RenderSection("modal", false)

View File

@ -24,16 +24,6 @@
</div>
</section>
</section>
<!--footer start-->
<footer class="site-footer">
<div class="text-center">
2016 © 红云红河集团.
<a href="#" class="go-top">
<i class="fa fa-angle-up"></i>
</a>
</div>
</footer>
<!--footer end-->
@Html.Partial("Footer")
</section>
@RenderSection("modal", false)