重构代码:移除fix样式,使用默认的position-fixed样式
This commit is contained in:
parent
f91770cf0a
commit
183115a7b7
|
@ -1,5 +1,5 @@
|
|||
@model ModelBase
|
||||
<footer class="site-footer fixed">
|
||||
<footer class="site-footer position-fixed">
|
||||
<span id="websiteFooter">@Model.Footer</span>
|
||||
<a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left">
|
||||
<i class="fa fa-angle-up"></i>
|
||||
|
|
|
@ -226,11 +226,6 @@ a, a:hover, a:focus {
|
|||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.fixed {
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.go-top {
|
||||
background: rgba(255,255,255,.5);
|
||||
width: 20px;
|
||||
|
|
|
@ -253,9 +253,9 @@
|
|||
return this;
|
||||
},
|
||||
footer: function (options) {
|
||||
if ($(window).width() >= 768) { return this.addClass('fixed'); }
|
||||
if ($(window).width() >= 768) { return this.addClass('position-fixed'); }
|
||||
var op = $.extend({ header: "header", content: ".main-content" }, options);
|
||||
return $(op.header).outerHeight() + $(op.content).outerHeight() + this.outerHeight() > $(window).height() ? this.removeClass('fixed') : this.addClass('fixed');
|
||||
return $(op.header).outerHeight() + $(op.content).outerHeight() + this.outerHeight() > $(window).height() ? this.removeClass('position-fixed') : this.addClass('position-fixed');
|
||||
},
|
||||
lgbTable: function (options) {
|
||||
var bsa = new DataTable($.extend(options.dataBinder, { url: options.url }));
|
||||
|
|
Loading…
Reference in New Issue