2014.11.18
ON | OFF | 税込 | 税抜 |
---|---|---|---|
7 | 8 | 9 | ÷ |
4 | 5 | 6 | × |
1 | 2 | 3 | - |
0 | . | = | + |
<table class="sample1"> <caption>▼電卓風のテーブルデザイン</caption> <tr> <th>ON </th> <th>OFF</th> <th>税込</th> <th>税抜</th> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> <td>÷</td> </tr> <tr> <td>4</td> <td>5</td> <td>6</td> <td>×</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>-</td> </tr> <tr> <td>0</td> <td>.</td> <td>=</td> <td>+</td> </tr> </table>
.sample1 { border:1px #ccc solid; border-collapse: separate; border-spacing: 5px; border-radius: 5px; box-shadow:2px 2px 2px #000 inset; } .sample1 caption { text-align: left;} .sample1 th:first-child { border-radius: 5px 0 0 0; } .sample1 th:last-child { border-radius:0 5px 0 0; } .sample1 tr:last-child td:first-child { border-radius: 0 0 0 5px; } .sample1 tr:last-child td:last-child { border-radius:0 0 5px 0; } .sample1 th, .sample1 td { padding: 2px 6px; text-align: center; border-top: 1px #ccc solid; border-left: 1px #ccc solid; border-bottom: 1px #000 solid; border-right: 1px #000 solid; } .sample1 th { color: #222; font-weight:normal; background: #ccc; background-image: -webkit-linear-gradient(#ddd, #999); background-image: linear-gradient(#ddd, #999); text-shadow:0px 1px 2px #FFF; }
No | 記事タイトル | 投稿日 | カテゴリ |
---|---|---|---|
01 | 記事タイトルにも新着マーク「New」を表示 | 2014.11.16 | JavaScript |
02 | 最新記事に「New」等の新着マークを表示 | 2014.11.14 | JavaScript |
03 | トラックバックについて&表示をカスタマイズ | 2014.11.11 | その他 |
04 | FC2ブログでトップページにだけ表示する方法 | 2014.10.31 | basic_white |
05 | ブログ内の人気記事ランキングを表示 | 2014.10.29 | その他 |
.sample2 { border-collapse: separate; border-spacing: 1px; } .sample2 caption { text-align: left; } .sample2 th:first-child { border-radius: 5px 0 0 0; } .sample2 th:last-child { border-radius:0 5px 0 0; } .sample2 tr:last-child td:first-child { border-radius: 0 0 0 5px; } .sample2 tr:last-child td:last-child { border-radius:0 0 5px 0; } .sample2 th, .sample2 td { padding: 2px 8px; border-top: 1px #ccc solid; border-left: 1px #ccc solid; border-bottom: 1px #000 solid; border-right: 1px #000 solid; } .sample2 th { color: #222; text-align: center; font-weight:normal; background: #ccc; background-image: -webkit-linear-gradient(#ddd, #999); background-image: linear-gradient(#ddd, #999); text-shadow:0px 1px 2px #FFF; } .sample2 td { text-shadow:1px 1px 1px #000; } .sample2 tr:hover { background: #222; }
No | 記事タイトル | 投稿日 | カテゴリ |
---|---|---|---|
01 | 記事タイトルにも新着マーク「New」を表示 | 2014.11.16 | JavaScript |
02 | 最新記事に「New」等の新着マークを表示 | 2014.11.14 | JavaScript |
03 | トラックバックについて&表示をカスタマイズ | 2014.11.11 | その他 |
04 | FC2ブログでトップページにだけ表示する方法 | 2014.10.31 | basic_white |
05 | ブログ内の人気記事ランキングを表示 | 2014.10.29 | その他 |
.sample3 { border-spacing: 0px; } .sample3 caption { text-align: left; } .sample3 tr { background: #fff; } .sample3 th:first-child{border-radius:5px 0 0 0;} .sample3 th:last-child{border-radius:0 5px 0 0; border-right: 1px #777 solid;} .sample3 tr:last-child td:first-child{border-radius:0 0 0 5px;} .sample3 tr:last-child td:last-child{border-radius:0 0 5px 0;} .sample3 th { padding: 2px 8px; text-align: center; font-weight:normal; border-top: 1px #777 solid; border-left: 1px #777 solid; border-bottom: 1px #777 solid; background: #9cf; background-image: -webkit-linear-gradient(#dff, #9cf); background-image: linear-gradient(#dff, #9cf); } .sample3 td { padding: 2px 8px; border-left: 1px #777 solid; border-bottom: 1px #777 solid; } .sample3 td:last-child{ border-right: 1px #777 solid; } .sample3 tr:hover { background: #eef; }
No | 記事タイトル | 投稿日 | カテゴリ |
---|---|---|---|
01 | 記事タイトルにも新着マーク「New」を表示 | 2014.11.16 | JavaScript |
02 | 最新記事に「New」等の新着マークを表示 | 2014.11.14 | JavaScript |
03 | トラックバックについて&表示をカスタマイズ | 2014.11.11 | その他 |
04 | FC2ブログでトップページにだけ表示する方法 | 2014.10.31 | basic_white |
05 | ブログ内の人気記事ランキングを表示 | 2014.10.29 | その他 |
.sample4 { border-spacing: 0; border-radius: 5px; box-shadow:2px 2px 2px #777; } .sample4 caption { text-align: left; } .sample4 tr { background: #fff; } .sample4 tr:nth-child(2n+1) { background: #daffda; } .sample4 th:first-child{border-radius: 5px 0 0 0;} .sample4 th:last-child{border-radius:0 5px 0 0; border-right: 1px #777 solid;} .sample4 tr:last-child td:first-child{border-radius: 0 0 0 5px;} .sample4 tr:last-child td:last-child{border-radius:0 0 5px 0;} .sample4 th { padding: 2px 8px; text-align: center; font-weight:normal; border-top: 1px #777 solid; border-left: 1px #777 solid; border-bottom: 1px #777 solid; background: #9fc; background-image: -webkit-linear-gradient(#dff, #9fc); background-image: linear-gradient(#dff, #9fc); text-shadow:1px 1px 1px #999; } .sample4 td { padding: 2px 8px; border-left: 1px #777 solid; border-bottom: 1px #777 solid; } .sample4 td:last-child{ border-right: 1px #777 solid; } .sample4 tr:hover { background: #afa; text-shadow:1px 1px 1px #999; }
※偶数行に色を付ける場合は、8行目の「.sample4 tr:nth-child(2n+1) { background: #daffda; }」の部分を「.sample4 tr:nth-child(2n) { background: #daffda; }」にすればOK♪
No | 記事タイトル | 投稿日 | カテゴリ |
---|---|---|---|
01 | 記事タイトルにも新着マーク「New」を表示 | 2014.11.16 | JavaScript |
02 | 最新記事に「New」等の新着マークを表示 | 2014.11.14 | JavaScript |
03 | トラックバックについて&表示をカスタマイズ | 2014.11.11 | その他 |
04 | FC2ブログでトップページにだけ表示する方法 | 2014.10.31 | basic_white |
05 | ブログ内の人気記事ランキングを表示 | 2014.10.29 | その他 |
.sample5 { border: 1px #777 solid; border-collapse: collapse; } .sample5 caption { text-align: left; } .sample5 tr { background: #fff; } .sample5 tr:nth-child(2n+1) { background: #E3FAFF; } .sample5 th,.sample5 td { padding: 2px 8px; border: 1px #777 solid; } .sample5 th { text-align: center; font-weight:normal; background: #66B6FC; background-image: -webkit-linear-gradient(#b2e1ff, #66B6FC); background-image: linear-gradient(#b2e1ff, #66B6FC); }
※偶数行に色を付ける場合は、4行目の「.sample5 tr:nth-child(2n+1) { background: #E3FAFF; }」の部分を「.sample5 tr:nth-child(2n) { background: #E3FAFF; }」にすればOK♪
No | 記事タイトル | 投稿日 | カテゴリ |
---|---|---|---|
01 | 記事タイトルにも新着マーク「New」を表示 | 2014.11.16 | JavaScript |
02 | 最新記事に「New」等の新着マークを表示 | 2014.11.14 | JavaScript |
03 | トラックバックについて&表示をカスタマイズ | 2014.11.11 | その他 |
04 | FC2ブログでトップページにだけ表示する方法 | 2014.10.31 | basic_white |
05 | ブログ内の人気記事ランキングを表示 | 2014.10.29 | その他 |
.sample6 { border: 1px #999 solid; border-collapse: collapse; } .sample6 caption { text-align: left; } .sample6 th,.sample6 td { padding: 2px 8px; border: 1px #999 solid; } .sample6 th { font-weight:normal; background: #ddd;}
- TrackBack -
- Comment -
- Post a Comment -
▼クリックすると配色が変更されます
このボタンの設置方法は こちら♪
2014.12.15
2014.12.09
2014.12.05
2014.12.04
2014.12.03
ブログのカスタマイズ私も挑戦してみます。(きっと笑)
又、色々教えて下さいね。