Line 12: | Line 12: | ||
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/Template:UESTC-China/CSS/public?action=raw&ctype=text/css"> | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/Template:UESTC-China/CSS/public?action=raw&ctype=text/css"> | ||
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/Template:UESTC-China/CSS/gundongzssstyle?action=raw&ctype=text/css"> | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/Template:UESTC-China/CSS/gundongzssstyle?action=raw&ctype=text/css"> | ||
+ | <script type="text/javascript"> | ||
+ | $(function() { | ||
+ | $(window).resize(function() { | ||
+ | imgWH(); | ||
+ | }).resize(); | ||
+ | function imgWH() { | ||
+ | var i = 0, | ||
+ | imgpnglength = $('.imgpng').length; | ||
+ | for(i=0; i < imgpnglength; i++) { | ||
+ | var imgpng = $('.imgpng').eq(i), | ||
+ | imgpngW = imgpng.width(), | ||
+ | maximgpngW = imgpng.attr("width"); | ||
+ | if(imgpngW >= maximgpngW){ | ||
+ | imgpng.attr('width', maximgpngW); | ||
+ | } else { | ||
+ | imgpng.attr('width', imgpngW); | ||
+ | } | ||
+ | } | ||
+ | var imgtopW = $('.imgtop').width(), | ||
+ | imgtopH = $('.imgtop').height(); | ||
+ | $('.gem-back').css({width:imgtopW*0.375,height:imgtopH*0.19,marginTop:imgtopH*0.259}); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
<style type="text/css"> | <style type="text/css"> | ||
Line 301: | Line 325: | ||
<script src="https://2018.igem.org/Template:UESTC-China/Javascript/bootjs?action=raw&ctype=text/javascript"></script> | <script src="https://2018.igem.org/Template:UESTC-China/Javascript/bootjs?action=raw&ctype=text/javascript"></script> | ||
<script type="text/javascript" src="https://2018.igem.org/Template:UESTC-China/Javascript/bootnav?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2018.igem.org/Template:UESTC-China/Javascript/bootnav?action=raw&ctype=text/javascript"></script> | ||
+ | <script src="https://2018.igem.org/Template:UESTC-China/Javascript/sectionscroll?action=raw&ctype=text/javascript" type="text/javascript"></script> | ||
+ | <script src="https://2018.igem.org/Template:UESTC-China/Javascript/mousewheel?action=raw&ctype=text/javascript" type="text/javascript"></script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 09:00, 12 September 2018