更改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\GroupConfig.cshtml" />
<Content Include="Views\Shared\Content.cshtml" /> <Content Include="Views\Shared\Content.cshtml" />
<Content Include="Views\Admin\Profiles.cshtml" /> <Content Include="Views\Admin\Profiles.cshtml" />
<Content Include="Views\Shared\Footer.cshtml" />
<None Include="Web.Debug.config"> <None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon> <DependentUpon>Web.config</DependentUpon>
</None> </None>

View File

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

View File

@ -175,9 +175,15 @@ $(function () {
}, "请填写正确的IP地址"); }, "请填写正确的IP地址");
} }
// tool tips
$('.tooltips').tooltip();
// popovers
$('.popovers').popover();
$(".go-top").click(function (e) { $(".go-top").click(function (e) {
e.preventDefault(); e.preventDefault();
$('#main-content').animate({ $('#main-content, .content-body, body').animate({
scrollTop: 0 scrollTop: 0
}, 200); }, 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}); //$("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 }); //$(".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); })(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 _Layout.cshtml
/Home/Login /Home/Login
-------> _Admin.cshtml -------> _Admin.cshtml
/Admin/Index /Admin/Index
--------------> _Default.cshtml --------------> _Default.cshtml
/Admin/Users /Admin/Users
-------> _Normal.cshtml -------> _Normal.cshtml
/Home/Terminals
--------------> _Fix.cshtml
/Home/Rules

View File

@ -31,16 +31,6 @@
</div> </div>
</section> </section>
</section> </section>
@Html.Partial("Footer")
<!--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-->
</section> </section>
@RenderSection("modal", false) @RenderSection("modal", false)

View File

@ -24,16 +24,6 @@
</div> </div>
</section> </section>
</section> </section>
@Html.Partial("Footer")
<!--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-->
</section> </section>
@RenderSection("modal", false) @RenderSection("modal", false)