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

              
                <!--
 * @Author: shisuiyi shisuiyi@qq.com
 * @Date: 2023-04-16 13:53:53
 * @LastEditors: shisuiyi shisuiyi@qq.com
 * @LastEditTime: 2023-04-16 14:35:28
 * @FilePath: \web_base\lesson.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>这是一个示例页面</title>
</head>
<body>
    life is 美好的!!
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.</p>
    <h1>中国的文化遗产</h1>
    <h2>丝绸之路上的历史古迹</h2>
    <h3>敦煌莫高窟</h3>
    <h4>壁画与雕塑艺术</h4>
    <h5>东南亚的影响</h5>
    <h6>参考文献</h6>
    <p>这个问题真的<strong>很重要</strong>!</p>
    <p>我<strong>不</strong>知道这是不是<em>你</em>想要的结果。</p>
    <strong>
        <em>举个例子</em>
    </strong>
    <del>这是一段被删除的文本内容。</del>
    <address>
        Written by John Doe<br>
        Visit us at:<br>
        Example.com<br>
        Box 564, Disneyland<br>
        USA
      </address>
    <div id="title">这里是标题区域</div>
    <div id="content">这里是内容区域</div>
    <p>这里是一段 <span style="color: red; font-size: 20px">重点提示</span> 的信息。</p>

</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console