|
|
Line 10: |
Line 10: |
| | | |
| </style> | | </style> |
− | <link rel='stylesheet' id='-slimwriter-style-css' href='http://www.azirquantum.com/wp-content/themes/slimwriter/static/css/SHSBNU2017_style.css?ver=4.8.1' type='text/css' media='all' /> | + | <link rel='stylesheet' id='-slimwriter-style-css' href='http://www.azirquantum.net.cn/wp-content/themes/slimwriter/static/css/SHSBNU2017_style.css?ver=4.8.1' type='text/css' media='all' /> |
| <style type="text/css" media="screen"> | | <style type="text/css" media="screen"> |
| html { margin-top: 32px !important; } | | html { margin-top: 32px !important; } |
Line 33: |
Line 33: |
| </style> | | </style> |
| | | |
− | <script type="text/javascript"> | + | <script> |
| function Background_fitting(){ | | function Background_fitting(){ |
| screen_ratio = document.body.clientWidth/document.body.clientHeight | | screen_ratio = document.body.clientWidth/document.body.clientHeight |
Line 58: |
Line 58: |
| } | | } |
| | | |
| + | window.onload = Background_fitting; |
| + | window.onresize = Background_fitting; |
| </script> | | </script> |
| | | |
| </head> | | </head> |
− | <body class="home blog logged-in admin-bar no-customize-support">
| |
− | <div id="fitting_background" style="overflow: hidden; z-index: -1; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; ">
| |
− | <img id="background_picture" src="http://www.azirquantum.com/wp-content/themes/slimwriter/static/css/testing_picture.jpg" style="position: fixed; display: block; left: 0px; top: 0px;">
| |
− | </div>
| |
| | | |
− | <button type="button" onclick="Background_fitting()">这是一个按钮</button>
| + | <body class="home blog logged-in admin-bar no-customize-support" > |
| + | |
| + | <script> |
| + | document.onload=function(){Background_fitting()}; |
| + | document.onresize=function(){Background_fitting()}; |
| + | </script> |
| + | |
| + | <div style="overflow: hidden; z-index: -1; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; "> |
| + | <img id="background_picture" src="http://www.azirquantum.net.cn/wp-content/themes/slimwriter/static/css/testing_picture.jpg" style="position: fixed; display: block; left: 0px; top: 0px;"> |
| + | </div> |
| | | |
| <div id="wrap"> | | <div id="wrap"> |
Line 102: |
Line 109: |
| | | |
| <div id="branding"> | | <div id="branding"> |
− | <a id="logo" href="https://2017.igem.org/Team:SHSBNU_China"><img src="http://www.azirquantum.com/wp-content/themes/slimwriter/static/css/Home_GIF1.gif" /></a> | + | <a id="logo" href="https://2017.igem.org/Team:SHSBNU_China"><img src="http://www.azirquantum.net.cn/wp-content/themes/slimwriter/static/css/Home_GIF1.gif" /></a> |
| </div> | | </div> |
| | | |