|
|
@@ -114,13 +114,15 @@ const query = function getQueryForm(data) {
|
|
|
|
|
|
function fixed(){
|
|
|
_parentNode.addClass('header-float');
|
|
|
- _parentNode.css('top',0);
|
|
|
- _parentNode.zIndex(95);
|
|
|
let dom = _this.appendDom ? $("#" + _this.appendDom + "") : null;
|
|
|
- if (!dom)return;
|
|
|
- dom.css('top', _parentNode.offset().top);
|
|
|
- dom.css('background', 'rgb(255, 255, 255)');
|
|
|
- dom.css('position', 'fixed');
|
|
|
+ if (dom){
|
|
|
+ dom.css('top', (_parentNode.offset().top+5)+'px');
|
|
|
+ dom.css('background', 'rgb(255, 255, 255)');
|
|
|
+ dom.css('position', 'sticky');
|
|
|
+ dom.css('z-index', 95);
|
|
|
+ }
|
|
|
+ _parentNode.css('top',0);
|
|
|
+ _parentNode.css('z-index',95);
|
|
|
}
|
|
|
|
|
|
// form fixed
|