Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.



  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<script src="//"></script>
<script src="//"></script>
  <!-- import CSS -->
  <link rel="stylesheet" href="//">
  <!-- import JavaScript -->
<script src="//"></script>
  <title>Element demo</title>

  <div id="app">
    <fullscreen v-model="fullscreen" :page-only="pageOnly" :teleport="teleport" :exit-on-click-wrapper="exitOnClickWrapper" ref="fullscreen" class="container">
      <el-select v-model="value" :popper-append-to-body="true">
        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
      <el-button type="button" @click="toggle">Fullscreen</el-button>
    <el-checkbox v-model="pageOnly">pagOnly</el-checkbox>
    <el-checkbox v-model="teleport">teleport</el-checkbox>
    <el-checkbox v-model="exitOnClickWrapper">exitOnClickWrapper</el-checkbox>
    <div>Page-only mode enabled in iPhone automatically</div>
    <div>Go to full screen mode and click on the drop down menu to check what teleport does</div>



                .container {
  width: 100%;
  height: 100%;
  background: cyan;
  display: flex;
  justify-content: center;
  align-items: center;
  &.fullscreen {
    z-index: 10;
    .el-select {
      margin: 20px;
body {
  height: 100vh;




var Main = {
  methods: {
    toggle() {
      this.fullscreen = !this.fullscreen
  data() {
    return {
      pageOnly: false,
      teleport: false,
      fullscreen: false,
      exitOnClickWrapper: true,
      options: [
          value: "选项1",
          label: "黄金糕"
          value: "选项2",
          label: "双皮奶"
          value: "选项3",
          label: "蚵仔煎"
          value: "选项4",
          label: "龙须面"
          value: "选项5",
          label: "北京烤鸭"
      value: ""
var Ctor = Vue.extend(Main);
new Ctor().$mount("#app");