Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                <link href="//fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">

<ol>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li><strong>每个诗人心中都有自己的致橡树,by 舒婷。</strong></li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li><strong>每个程序猿心中都有自己的偶像,写一个致敬页来向自己的偶像致敬。</strong></li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li>当你看不到右边的视频时,说明你还身处防火墙中,赶紧翻墙去体验<a href=""><strong>自由无阻碍的互联网</strong>。</a></li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li>如果你还不明白翻墙对个人成长的重要性,请去看电影<a href=""><strong>《肖申克的救赎》</strong></a>。</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li><strong>目标:</strong> 设计一个类似于: <a href=""><strong>https://codepen.io/FreeCodeCamp/full/NNvBQW/</strong></a>的页面。</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li><strong>规则1: </strong>代码是开源的,你可以借鉴,但请不要抄袭。</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li><strong>规则2:</strong> 用你喜爱的任何库来定制属于你自己的风格,实现下面的功能</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li><strong>功能1:</strong> 你可以用图片和文本来实现这个致敬页面。</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li><strong>功能2: </strong>你可以点击链接穿越到另一个网站,获得关于这个主题的更多信息。</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li>当你遇到困难的时候,记得查看错误提示、阅读文档、搜索、提问。</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
    <li>当你完成了这个项目,请点击 "我已经完成了这个挑战" 按钮,输入你的项目在CodePen上的链接。</li>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-1">
    <input type="checkbox">
    </div>
    <div class="col-sm-11">
      <li>你可以分享这个项目给<a href=""><strong>JackJin</strong></a>或<a href=""><strong>聊天室</strong></a>来获得反馈。</li>
    </div>
  </div>
</ol>

              
            
!

CSS

              
                  a{
  color:green;}
  body{
   font-family: Monospace;
  }

              
            
!

JS

              
                $("")
              
            
!
999px

Console