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

              
                內容<br>內容
<div class="block">方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br>方塊中的內容<br></div>
內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容<br>內容
              
            
!

CSS

              
                /*-- 全局捲軸 --*/

/* 捲軸底 */
::-webkit-scrollbar-track {
  background-color: #cdcdcd73;
  box-shadow: inset 0px 0px 3px #9b9b9b;
}

/* 捲軸寬度 */
::-webkit-scrollbar {
  overflow: visible;
  width: 12px;
}

/* 捲軸本體(正常) */
::-webkit-scrollbar-thumb {
  background: #19bdc5;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.07);
}

/* 捲軸本體(游標接觸) */
::-webkit-scrollbar-thumb:hover {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
}

/* 捲軸本體(游標點擊) */
::-webkit-scrollbar-thumb:active {
  box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.65);
}

/*-- 指定區塊內捲軸 --*/

.block {
  width: 200px;
  height: 200px;
  padding: 5px;
  overflow-y: auto;
  background-color: #dedede;
}

/* 捲軸底 */
.block::-webkit-scrollbar-track {
  background-color: #cdcdcd73;
  box-shadow: inset 0px 0px 3px #9b9b9b;
}

/* 捲軸寬度 */
.block::-webkit-scrollbar {
  overflow: visible;
  width: 8px;
}

/* 捲軸本體(正常) */
.block::-webkit-scrollbar-thumb {
  background: #18a253;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.07);
  border-radius: 4px;
}

/* 捲軸本體(游標接觸) */
.block::-webkit-scrollbar-thumb:hover {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
}

/* 捲軸本體(游標點擊) */
.block::-webkit-scrollbar-thumb:active {
  box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.65);
}

/* 捲軸上下按鈕 */
.block::-webkit-scrollbar-button:single-button {
  background: #bbbbbb;
  display: block;
  border-style: solid;
  height: 8px;
}

/* 捲軸往上按鈕 */
.block::-webkit-scrollbar-button:single-button:vertical:decrement {
  border-width: 0 4px 4px 4px;
  border-color: transparent transparent #555 transparent;
}
.block::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
  border-color: transparent transparent #777 transparent;
}

/* 捲軸往下按鈕 */
.block::-webkit-scrollbar-button:single-button:vertical:increment {
  border-width: 4px 4px 0 4px;
  border-color: #555 transparent transparent transparent;
}
.block::-webkit-scrollbar-button:vertical:single-button:increment:hover {
  border-color: #777 transparent transparent transparent;
}

/* 萌芽系列網站 ‧ Mnya Series Website ‧ Mnya.tw © */
/* 圖文介紹:https://mnya.tw/cc/word/1746.html */
              
            
!

JS

              
                
              
            
!
999px

Console