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

              
                <table id="demo-table" class="default">
<thead>
<tr>
<th>門市名稱</th>
<th class="small">門市地址</th>
<th class="mobile">門市電話</th>
</tr>
</thead>
<tbody>
<tr>
<td data-title="門市名稱">信義威秀</td>
<td data-title="門市地址" class="small">臺北市信義區松壽路18號</td>
<td data-title="門市電話" class="mobile">04-22228888</td>
</tr>
<tr>
<td data-title="門市名稱">西門町neo19旗艦店</td>
<td data-title="門市地址" class="small">臺北市萬華區西寧南路125號</td>
<td data-title="門市電話" class="mobile">02-12345678</td>
</tr>
<tr>
<td data-title="門市名稱">信義新天地A2館</td>
<td data-title="門市地址" class="small">臺北市信義區松高路19號3樓</td>
<td data-title="門市電話" class="mobile">02-12345678</td>
</tr>
<tr>
<td data-title="門市名稱">太平洋SOGO百貨-忠孝館</td>
<td data-title="門市地址" class="small">臺北市大安區忠孝東路四段45號2樓</td>
<td data-title="門市電話" class="mobile">02-12345678</td>
</tr>
<tr>
<td data-title="門市名稱">大葉高島屋</td>
<td data-title="門市地址" class="small">臺北市士林區忠誠路2段55號3樓</td>
<td data-title="門市電話" class="mobile">02-12345678</td>
</tr>
<tr>
<td data-title="門市名稱">台北美麗華百樂園</td>
<td data-title="門市地址" class="small">臺北市中山區敬業三路20號4樓</td>
<td data-title="門市電話" class="mobile">02-12345678</td>
</tr>
</tbody>
</table>
              
            
!

CSS

              
                #demo-table,.css-table{
	width: 99.9%;
	background-color: #ffffff;
	border-collapse: collapse;
	margin-bottom: 20px;
  font-family: "Microsoft JhengHei";
  font-weight: 300;
}

#demo-table td, #demo-table th,
.css-table .td, .css-table .th{
	padding: 5px;
}

#demo-table td,
.css-table .td{
	color: #666666;
	border: #ddd 1px solid;
}

#demo-table th,
.css-table .th{
	background-color: #1a1a1a;
	color:#ffffff;
	border: #1a1a1a 1px solid;
	text-align: center;
}


.css-table{
	display: table;
	display: none;
}
.css-table .thead{
	display:table-header-group;
}
.css-table .tbody{
	display:table-row-group;
}
.css-table .tr{
	display:table-row;
}
.css-table .th,
.css-table .td{
	display:table-cell;
}

              
            
!

JS

              
                
              
            
!
999px

Console