Team:KIT-Kyoto/Test
From 2014.igem.org
(Difference between revisions)
Line 149: | Line 149: | ||
} | } | ||
.show,.hide{ | .show,.hide{ | ||
+ | width:100%; | ||
+ | height:100%; | ||
position:absolute; | position:absolute; | ||
top:0; | top:0; | ||
Line 159: | Line 161: | ||
var topimg = function(){ | var topimg = function(){ | ||
var w = $("#container").width; | var w = $("#container").width; | ||
- | $(" | + | $("timg").css({width:w}); |
- | + | w /= 1920; | |
- | $(".timg").css({height: | + | w *= 300; |
+ | $(".timg").css({height:w}); | ||
} | } | ||
$(function(){ | $(function(){ |
Revision as of 16:33, 10 October 2014