返信先: テーブルのレスポンシブは出来ますか?

By
#15342
たけ
ゲスト

シェフさん、こんばんは。

すみません、私の勘違いでした。

テーブルのスタイルに幅と高さを入れてしまっていました。

ついでに質問ですが、以前テーブルの色を最初の行だけ黄色にして、2行目以降を白にしたいと思って質問したのですが、以下のコードを4536-child: スタイルシートの/* ▼ここからコード追加▼ */の下に、入れたのですが、変わりません。キャッシュをクリアすれば反映しますか?

.post-main table {
border-top: 1px #999 solid;
border-right: 1px #999 solid;
margin-bottom: 20px;
width:100%;
border-collapse: collapse;
}
.post-main table tr td,.post-main table tr th {
padding: 5px;
border-left: 1px #999 solid;
border-bottom: 1px #999 solid;
font-size: 14px;
line-height: 1.4;
}
.post-main table tr:first-child {
background-color: #f6f6f6;
}
.post-main table tr:nth-child(even) {
background-color: #ffffff;
}