bd77fbc422e61cd0f485e98bad7f171b27670689.svn-base 850 B

12345678910111213141516171819202122232425262728293031323334
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  4. </head>
  5. <body>
  6. <div id="img">
  7. </div>
  8. <script type="text/javascript">
  9. window.onload = function(){
  10. var headUrl = "https://sm-sign.oss-cn-shanghai.aliyuncs.com/cert/";
  11. var filename = location.hash.replace("#", '');
  12. document.getElementById("img").innerHTML="<img class='img' src='"+ headUrl+filename+ "'>";
  13. }
  14. </script>
  15. <style>
  16. .img{
  17. position:absolute;
  18. top:50%;
  19. left:50%;
  20. transform:translate(-50%,-50%);
  21. }
  22. @media screen and (max-width: 500px) {
  23. .img{
  24. position:absolute;
  25. width: 100%;
  26. top:0%;
  27. left:0%;
  28. transform:none;
  29. }
  30. }
  31. </style>
  32. </body>
  33. </html>