You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 regels
1.6 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Document</title>
  6. <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  7. <style>
  8. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, em, p, font, img, small, strong, center, dl, dt, dd, ol, ul, li, form, label, table, caption, tbody, tr, th, td {margin:0;padding:0;border:0;outline:0;font-size:12px;vertical-align:baseline}
  9. ol, ul {list-style:none} :focus {outline:none; }
  10. table {border-collapse:collapse;border-spacing: 0}
  11. caption, th, td { text-align: left; font-weight: normal}
  12. strong {font-weight:600}
  13. a{font:12px Arial;text-decoration:none;color:#404040;cursor:pointer;}
  14. a:hover{text-decoration:underline;color:#FF3300}
  15. h1{font-size:16px;font-weight:600;color:#666} .left{float:left} .right{float:right} .clear{clear:both}
  16. </style>
  17. </head>
  18. <script>
  19. (function (doc, win) {
  20. var docEl = doc.documentElement,
  21. resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
  22. recalc = function () {
  23. var clientWidth = docEl.clientWidth;
  24. if (!clientWidth) return;
  25. docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
  26. };
  27. if (!doc.addEventListener) return;
  28. win.addEventListener(resizeEvt, recalc, false);
  29. doc.addEventListener('DOMContentLoaded', recalc, false);
  30. })(document, window);
  31. </script>
  32. <body>
  33. <span style="font-size:16rem; background:#e60012;">大</span>
  34. </body>
  35. </html>