NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<!doctype html>
<html lang="ja">

<head>
<!-- Required meta tags -->
<meta charset="utf-8">

<!-- Bootstrap CSS
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
-->

<style>
.sticky_table thead th {
background-color: hotpink;
}

.sticky_table tbody td {
background-color: greenyellow;
}

.sticky_table thead th {
/* 縦スクロール時に固定する */
position: -webkit-sticky;
position: sticky;
top: 0;
/* tbody内のセルより手前に表示する */
z-index: 1;
}
.sticky_table th:first-child {
/* 横スクロール時に固定する */
position: -webkit-sticky;
position: sticky;
left: 0;
}
.sticky_table td:first-child {
/* 横スクロール時に固定する */
position: -webkit-sticky;
position: sticky;
left: 0;
}
.sticky_table thead th:first-child {
/* ヘッダー行内の他のセルより手前に表示する */
z-index: 2;
}

.sticky_table th:nth-child(2) {
/* 横スクロール時に固定する */
position: -webkit-sticky;
position: sticky;
left: 30px;
}
.sticky_table td:nth-child(2) {
/* 横スクロール時に固定する */
position: -webkit-sticky;
position: sticky;
left: 30px;
}

.sticky_table thead th:nth-child(2) {
/* ヘッダー行内の他のセルより手前に表示する */
z-index: 2;
}

.sticky_table th:last-child {
/* 横スクロール時に固定する */
position: -webkit-sticky;
position: sticky;
right: 0;
}
.sticky_table td:last-child {
/* 横スクロール時に固定する */
position: -webkit-sticky;
position: sticky;
right: 0;
}

.sticky_table thead th:last-child {
/* ヘッダー行内の他のセルより手前に表示する */
z-index: 2;
}

</style>
<title>Hello, world!</title>
</head>

<body>

<div style="border: 1px solid blue; width:300px; height:300px; overflow:auto;">

<table class="table sticky_table" border=1 width="500px">
<thead class="thead-dark">
<tr>
<th scope="col" data-group-x="1">No</th>
<th scope="col" data-group-x="2">氏名</th>
<th scope="col" data-group-x="3">部署</th>
<th scope="col" data-group-x="4">住所</th>
<th scope="col" data-group-x="5">電話番号</th>
<th scope="col" data-group-x="6">補足</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>侍1</td>
<td>システム開発部</td>
<td>神奈川県〇〇市〇〇区〇〇町X-X-X</td>
<td>ZZZ-ZZZZ-ZZZZ</td>
<td>2013年新卒入社</td>
</tr>
<tr>
<td>2</td>
<td>侍2</td>
<td>システム開発部</td>
<td>神奈川県〇〇市〇〇区〇〇町X-X-X</td>
<td>ZZZ-ZZZZ-ZZZZ</td>
<td>2010年新卒入社</td>
</tr>
<tr>
<td>3</td>
<td>侍3</td>
<td>システム開発部</td>
<td>神奈川県〇〇市〇〇区〇〇町X-X-X</td>
<td>ZZZ-ZZZZ-ZZZZ</td>
<td>1990年新卒入社</td>
</tr>
</tbody>
</table>
</div>


</body>
</html>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.