3
Chris(CSS-Tricks)が作成したガイド(click here)を使用して反応性の高いテーブルを作成しています。私はまた、インライン編集をテーブルに追加しようとしています。CSSトリックのレスポンシブデータテーブル(インライン編集モード付き)表示問題
メインCSS:
/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr {
display: block;
}
/* Hide table headers (but not display: none;, for accessibility) */
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
tr {
border: 1px solid #ccc;
}
#demoTable td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
}
td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
}
:
は、このコードを試してみてください!ありがとうございました! – Dev
私はそれが助けてうれしいです:) –