表格在行動裝置呈現左右滾軸檢視

@media only screen and (max-width: 785px){
table {
overflow: scroll;
display: block;
overflow-x: auto;
white-space: nowrap;
}}

首行固定

table td:first-child {
position: sticky;
left: 0;
z-index: 1;
background-color: #fbfbfb;
}

發佈留言