重构代码:精简前台后台首页代码,移除js文件,精简样式代码

This commit is contained in:
Argo-Lenovo 2017-03-27 14:59:42 +08:00
parent 87743d83b2
commit 150473af3e
6 changed files with 26 additions and 24 deletions

View File

@ -232,7 +232,6 @@
<Content Include="packages.config" />
<Content Include="Scripts\jquery-3.1.1.slim.min.map" />
<Content Include="Scripts\jquery-3.1.1.min.map" />
<Content Include="Scripts\well.js" />
<Content Include="Views\Shared\Readme.txt" />
<Content Include="Web.config">
<SubType>Designer</SubType>

View File

@ -5,7 +5,6 @@
font-size: 13px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch;
}
@ -22,10 +21,6 @@ a, a:hover, a:focus {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.176);
}
.well-bg {
color: #fff;
}
.card-view:not(:last-child) {
margin-bottom: 6px;
}

View File

@ -1,6 +1,4 @@
$(function () {
$('#navbar').attr('data-toggle', "dropdown").addClass('dropdown-toggle');
var $subMenu = $('#submenu');
var $breadNav = $('#breadNav');
$breadNav.hide();
$('#breadNav').hide();
});

View File

@ -1,12 +0,0 @@
$(function () {
$('#main-content').addClass('welcome-bg');
function resposive() {
var height = $(window).height();
if (height > 672)
$('.well-bg').height(height - 270);
else
$('.well-bg').height(height - 158);
}
$(window).on('load', resposive);
$(window).on('resize', resposive);
});

View File

@ -3,7 +3,22 @@
ViewBag.Title = "后台管理";
Layout = "~/Views/Shared/_Admin.cshtml";
}
@section Javascript {
<script src="~/scripts/well.js"></script>
@section css {
<style>
.site-footer, .main-content {
position: fixed;
}
.main-content h4 {
color: #fff;
}
</style>
}
<div class="well-bg"><h4>欢迎使用后台管理</h4></div>
@section javascript {
<script>
$(function () {
$('#main-content').addClass('welcome-bg');
});
</script>
}
<div><h4>欢迎使用后台管理</h4></div>

View File

@ -3,6 +3,13 @@
ViewBag.Title = "首页";
Layout = "~/Views/Shared/_Normal.cshtml";
}
@section css {
<style>
.site-footer {
position: fixed;
}
</style>
}
@section javascript {
<script src="~/Scripts/Content.js"></script>
}