テンプレート CSS定義

nth-child
テーブル
リストボックス
パーツ形状
 角丸ボタン
検索
 テキスト検索

nth-child

・x番目
li:nth-child(X){ }
・最初のみ
li:nth-child(1){ }
・最後のみ
li:last-child{ }
・X番目以前(最初からX番目まで)
li:nth-child(-n+X)
・X番目以降(X番目から最後まで)
li:nth-child(n+X)
・X番目からY番目まで
li:nth-child(n+X):nth-child(-n+Y)

テーブル

table#css-table-1 ,table#css-table-1 td{ border: 2px #808080 solid; }
AAA123
BBB456
table#css-table-2 td{ border: 2px #808080 solid; }
AAA123
BBB456
table#css-table-3 ,table#css-table-3 td{ border: 2px #808080 solid; border-collapse: collapse;}
AAA123
BBB456

リストボックス

水平スクロールバー無し

width:100px; height:200px;
overflow: auto;
overflow-x: hidden;
     
111
222
333
444
555
666
777
888
999
111
222
333
444
555
666
777
888
999

パーツ形状

角丸ボタン 参考url

ボタンChrome不可 なぜ?
.button {
    width: 100px;
    padding: 15px 0;
    font-size: 20px;
    text-decoration: none;
    display: block;
    text-align: center;
    color: #FFFFFF;
    background: #008DDD;
    border-radius: 5px;
    -webkit-border-radius: 5px;/* for Safari and Chrome 対応*/
    -moz-border-radius: 5px;/* for Firefox 対応*/
}