Difference between revisions of "Team:CPU CHINA/HP/Gold Integrated"

(Created page with "<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="https://2018.igem.org/Team:CPU_CHINA/jQuery_script_css?ac...")
 
Line 162: Line 162:
 
     $(".mw-content-ltr").css("height","800px");
 
     $(".mw-content-ltr").css("height","800px");
  
 
+
    setAttributions(1);
 +
    setAttributions(2);
 +
    setAttributions(3);
 
})
 
})
  
 +
/*********向背景中动态添加元素**********/
 +
function setAttributions(id){
 +
  var parent=document.getElementById("mw-content-text");
 +
  var btn=document.getElementById("scroll-"+id);
 +
  $("#scroll-"+id).css("height","520px");
 +
 
 +
  parent.appendChild(btn);
  
 +
}
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 00:46, 25 August 2018