Template:Team:SCUT/mainhead

From 2014.igem.org

(Difference between revisions)
Line 134: Line 134:
li#safety{width:43px;}
li#safety{width:43px;}
-
   #left{position:absolute;top:0px;width:200px;height:800px;z-index:1000;margin-top:-100px;}
+
   #left{position:absolute;top:0px;width:200px;height:800px;z-index:1000;}
   .navihead{width:200px;height:45px;font-size:20px;}
   .navihead{width:200px;height:45px;font-size:20px;}
   .navihead img{width:200px;height:auto;}
   .navihead img{width:200px;height:auto;}
Line 261: Line 261:
$(document).ready(function(){
$(document).ready(function(){
var element = $("#left");
var element = $("#left");
-
         var dis = element.position().top + 150;
+
         var dis = element.position().top;
var pos = element.css("position");
var pos = element.css("position");
$(window).scroll(function(){
$(window).scroll(function(){
Line 271: Line 271:
else
else
{
{
-
  element.css({"position":"absolute","top":"0px"});
+
  element.css({"position":"absolute",""marginTop:"0px"});
}
}
});
});

Revision as of 06:15, 9 October 2014