1
このテーブルスタイルを別のものと同じページで使用したいのですが、常に他のものがこのテーブルスタイルをコントロールしていますので、別のスタイルに変更してください。 Jsfiddleの例で作成してください。同じページで別のスタイルにテーブルを変更する方法
ここに私のCSS:ここ
body {
color: #555;
font-family: 'Open Sans';
}
th {
text-align: left;
}
table {
background-color: transparent;
width: 100%;
max-width: 100%;
margin-bottom: 20px;
border-collapse: separate;
border-spacing: 0 7px;
}
table > thead > tr > th,
table > tbody > tr > th,
table > tfoot > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
padding: 13px;
line-height: 20px;
}
table th {
font-weight: 700;
font-size: 13px;
color: #868686;
vertical-align: bottom;
padding: 0 13px !important;
}
table td {
vertical-align: middle;
background: #fff;
border: 1px solid #eaeaea;
border-right: 0;
box-shadow: 0 3px 2px rgba(0, 0, 0, 0.1);
transition: all .2s ease;
font-size: 13px;
}
table td:last-child {
border-right: 1px solid #eaeaea;
border-radius: 0 2px 2px 0;
}
table td:first-child {
border-radius: 2px 0 0 2px;
}
table > thead > tr > th {
vertical-align: bottom;
}
table > caption + thead > tr:first-child > th,
table > colgroup + thead > tr:first-child > th,
table > thead:first-child > tr:first-child > th,
table > caption + thead > tr:first-child > td,
table > colgroup + thead > tr:first-child > td,
table > thead:first-child > tr:first-child > td {
border: 0;
}
table > tbody > tr:hover > td,
table > tbody > tr:hover > th {
background-color: #f7f8fb;
}
私のHTML:
<table>
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td width="20">1</td>
<td>Obcasyn Maruszczak</td>
<td>[email protected]</td>
<td>No comment</td>
</tr>
<tr>
<td>2</td>
<td>Obcasyn Maruszczakowy</td>
<td>[email protected]</td>
<td>No comment</td>
</tr>
<tr>
<td>3</td>
<td>Obcasyn Maruszczakowy</td>
<td>[email protected]</td>
<td>No comment</td>
</tr>
</tbody>
</table>
車はあなたに感謝、しかし、私はそれらを使用する場合、それらはこのスタイルhttp://www.up-9.com/uploads/ようになり、新たな問題を抱えています148445292904681.jpg – k76
申し訳ありませんが、私はそれを得ていませんでした。結果のスクリーンショットを追加し、関連するコードのためのフィドルを設定できますか? – ab29007
私はあなたの問題を複製し、ブートストラップを使用している関連するコードを設定することができますスクリーンショットを手に入れましたか? – ab29007