Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html>

<head>
  <title>几秒后跳转.html</title>

  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="this is my page">
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">

  <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

</head>

<body bgcolor="#33ccff">
  <script type="text/javascript">
    function delayURL(url) {
      var delay = document.getElementById("time").innerHTML;
      //最后的innerHTML不能丢,否则delay为一个对象  
      if (delay > 0) {
        delay--;
        document.getElementById("time").innerHTML = delay;
      } else {
        window.top.location.href = url;
      }
      setTimeout("delayURL('" + url + "')", 1000);
      //此处1000毫秒即每一秒跳转一次  
    }
  </script>

  <div style="text-align: center; margin-top: 200px;">
    <span id="time" style="background: red">5</span>秒钟之后自动跳转,如果不跳转,请点击下面链接
    <a href="https://blog.csdn.net/weixin_41287260/">点击链接快速跳转</a>
  </div>

  <script type="text/javascript">
    delayURL("https://blog.csdn.net/weixin_41287260/");
  </script>
</body>

</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console