去掉Apollo配置中心依赖

This commit is contained in:
kl
2017-12-14 18:55:59 +08:00
committed by klboke
parent ec0377f62c
commit 8ecfde980e
99 changed files with 3495 additions and 176 deletions

View File

@ -0,0 +1,19 @@
/**创建一个div并固定在底部将center中的所有a标签放在改div中**/
$("body").append($("<div>").css({"width":"100%","height":"30px","position":"fixed","top":"0","left":"0"
,"background-color":"rgba(53, 53, 53, 1)","line-height":"30px","font-size":"13px"}).attr("id","excel-header-nav"));
$("center").css("display", "none");
var centerChildrenA = $("center").children("a");
if (centerChildrenA.length === 0) {
$("#excel-header-nav").hide();
}
$(centerChildrenA).each(function (a, b) {
// 获取a标签对应的target的name值并设置name对应标签的样式以避免锚点标签标题被覆盖
var href = $(b).attr("href");
var name = href.substr(1);
console.log(href + ":" + name);
$("[name=" + name + "]").css({"display":"block","padding-top":"14.01px"});
$(b).css({"padding":"5px","border-right":"1px solid white","color":"#f9f9f9"});
$("#excel-header-nav").append(b);
});
/**给所有的table添加class=table table-striped样式**/
$("table").addClass("table table-striped");