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

              
                <p>
《正經地說笑》如何寫出讓人瘋傳的雞湯式文案
<br>
  這世界總是不缺溫暖,當你覺得疲憊,一定有一篇心靈雞湯,符合你的心境,給你滿滿的元氣。
<br>
首先,要先定義一下什麼叫雞湯,或正名勵志。
勵志原意為:「勉勵意志」,再拆分意為勉強砥礪你的意念心志。
簡單說,就是當你撐不下去時,透過各種方式讓你硬撐下去的方法。

舉例來說,就好像老闆看你快撐不下去了,不替你加薪、也不幫你調整工作內容、更不會請新人幫你分擔工作。只是拍拍你的肩膀,說:

「今日的辛苦,會化成明日燦爛的果實,加油。」

「曾經我也為工作的煩悶而困擾,但如今我感謝過往那些歷練。」

「成功的人找方法,失敗的人找藉口,你想當哪種人?」

於是你聽了之後,覺得好像又可以撐下去了,就繼續的努力打拼。
過了一年後,終於。


你老闆買了新車。


心靈勵志的力量尤其強大,畢竟心可以強迫肉體,激發出肉體的極限,當你覺得自己什麼都沒有的時候,要想想著名公主病女神雅典娜說過的:

你不是還有生命嗎?
  
</p>


<div class="b1">
  我是一段文字
</div>

<div class="b2">
  我是一段文字
</div>

<div class="yuan"> 
</div>

<a class="link" href="xx">我是一塊連結</a>


              
            
!

CSS

              
                * {
  background-color: #A3D5D0;
  line-height:30px;
  font-family:微軟正黑體;
  font-weight:100;
  text-align: center;
  
}


p{
  margin: 20px 20px 20px 20px;
  padding: 10px 10px 10px 10px;
  border-width: 1px;
  border-style: dotted;
  
}


.b1{
  background-color: #FFEE11;
  font-weight:400;
  width:100px;
  margin:10px;
  border:10px; border-style:solid;
  padding:10px;
  display: inline-block;
}


.b2{
  background-color: #FF11EE;
  font-weight:400;
  width:140px;
  box-sizing:border-box;
  margin:10px;
  border:10px; border-style:solid;
  padding:10px;
  display: inline-block;
}

.yuan{
  width:100px;
  height:100px;
  background-color: #ddffaa;
  border-radius: 100px;
  display: block;
}

.link{
  background-color: #FFEEAA;
  width: 100px;
  height: 100px;
  display:inline-block;
}
              
            
!

JS

              
                
              
            
!
999px

Console