|
|
Line 32: |
Line 32: |
| } | | } |
| </style> | | </style> |
− |
| |
− | <script>
| |
− | function Background_fitting(){
| |
− | screen_ratio = document.body.clientWidth/document.body.clientHeight
| |
− | picture_ratio = 600/360
| |
− | if (screen_ratio>picture_ratio)
| |
− | {
| |
− | ph=document.body.clientWidth/picture_ratio
| |
− | document.getElementById("background_picture").style.width=document.body.clientWidth
| |
− | document.getElementById("background_picture").style.height=ph
| |
− | document.getElementById("background_picture").style.top=document.body.clientHeight-ph
| |
− | }
| |
− | else if (screen_ratio=pirture_ratio)
| |
− | {
| |
− | document.getElementById("background_picture").style.width=document.body.clientWidth
| |
− | document.getElementById("background_picture").style.height=document.body.clientHeight
| |
− | }
| |
− | else
| |
− | {
| |
− | pw=document.body.clienHeighth*picture_ratio
| |
− | document.getElementById("background_picture").style.width=document.body.clientHeight
| |
− | document.getElementById("background_picture").style.height=pw
| |
− | document.getElementById("background_picture").style.top=document.body.clientWidth-pw
| |
− | }
| |
− | }
| |
− |
| |
− | window.onload = Background_fitting;
| |
− | window.onresize = Background_fitting;
| |
− | </script>
| |
| | | |
| </head> | | </head> |
| | | |
| <body class="home blog logged-in admin-bar no-customize-support" > | | <body class="home blog logged-in admin-bar no-customize-support" > |
− |
| |
− | <script>
| |
− | function Background_fitting(){
| |
− | screen_ratio = document.body.clientWidth/document.body.clientHeight
| |
− | picture_ratio = 600/360
| |
− | if (screen_ratio>picture_ratio)
| |
− | {
| |
− | ph=document.body.clientWidth/picture_ratio
| |
− | document.getElementById("background_picture").style.width=document.body.clientWidth
| |
− | document.getElementById("background_picture").style.height=ph
| |
− | document.getElementById("background_picture").style.top=document.body.clientHeight-ph
| |
− | }
| |
− | else if (screen_ratio=pirture_ratio)
| |
− | {
| |
− | document.getElementById("background_picture").style.width=document.body.clientWidth
| |
− | document.getElementById("background_picture").style.height=document.body.clientHeight
| |
− | }
| |
− | else
| |
− | {
| |
− | pw=document.body.clienHeighth*picture_ratio
| |
− | document.getElementById("background_picture").style.width=document.body.clientHeight
| |
− | document.getElementById("background_picture").style.height=pw
| |
− | document.getElementById("background_picture").style.top=document.body.clientWidth-pw
| |
− | }
| |
− | }
| |
− |
| |
− | window.onload = Background_fitting;
| |
− | window.onresize = Background_fitting;
| |
− | </script>
| |
− |
| |
| <div style="overflow: hidden; z-index: -1; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; "> | | <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;"> | | <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;"> |
Line 143: |
Line 84: |
| | | |
| <div class="entry-footer"> | | <div class="entry-footer"> |
| + | <P style = "font-family:arial;color:#5C5C5C;font-size:10px; text-align: center">Made by Azir.</P> |
| + | <p style = "font-family:arial;color:#5C5C5C;font-size:10px; text-align: center">The Second High School Attached Beijing Normal University International Division </p> |
| </div> | | </div> |
| | | |