diff --git a/public/js/header.js b/public/js/header.js index c50eec2eb86d72d3b2f7b5a8f5c8980028198a5f..2c06dd7237e429f7677ffcca12a9da54866a48da 100644 --- a/public/js/header.js +++ b/public/js/header.js @@ -13,18 +13,18 @@ $(window).resize(function(){ var fill=document.getElementById('headfill'); var head=document.getElementById('header'); fill.style.height=head.clientHeight+'px'; - var contactus=document.getElementById('contactus'); - var container=document.getElementById('container'); - contactus.style.marginLeft=(container.clientWidth/2-contactus.clientWidth)+'px'; + // var contactus=document.getElementById('contactus'); + // var container=document.getElementById('container'); + // contactus.style.marginLeft=(container.clientWidth/2-contactus.clientWidth)+'px'; }); -window.onload=function(){ +(function(){ var fill=document.getElementById('headfill'); var head=document.getElementById('header'); fill.style.height=head.clientHeight+'px'; - var contactus=document.getElementById('contactus'); - var container=document.getElementById('container'); - contactus.style.marginLeft=(container.clientWidth/2-contactus.clientWidth)+'px'; -} + // var contactus=document.getElementById('contactus'); + // var container=document.getElementById('container'); + // contactus.style.marginLeft=(container.clientWidth/2-contactus.clientWidth)+'px'; +})(); function show(id){ $('#'+id).show(); diff --git a/public/style/header.css b/public/style/header.css index 4bf34aa86c32ab14e40c0148a668c1100b6016de..3c442997b7f440bfbbf1ee93f46fd0dacb88454a 100644 --- a/public/style/header.css +++ b/public/style/header.css @@ -25,7 +25,7 @@ a:hover{/*text-decoration: underline;color: red;*/cursor: pointer;} .tanc h3{color: #fff;margin-bottom: 10px;} .tanc h3 button{cursor: pointer;position: relative;left: 15px;border: none;color: red;padding: 2px;} -.contactus{width: 80px;position: fixed;left: 50%;bottom: 5px;z-index: 1002;background: #fff;} +.contactus{width: 80px;position: fixed;right: 0;bottom: 5px;z-index: 1002;background: #fff;} .erweima{width: 100%;text-align: center;font-weight: bolder;} .erweima img{width: 100%;} diff --git a/views/index.html b/views/index.html index d8b13f0ecbcdaa36ac2073420d638428d1ec92e6..9a34b753a877928e383463f874977bd88256fc66 100644 --- a/views/index.html +++ b/views/index.html @@ -185,11 +185,11 @@
关注公众号
-
+
我要报名
-
+