- From: shuishuidelin via GitHub <sysbot+gh@w3.org>
- Date: Tue, 07 Jun 2022 12:14:16 +0000
- To: public-css-archive@w3.org
> 让它工作会很好: > > ``` > <div class="table-wrapper"> > <table> > <tr><th>Foo</th><th>Bar</th></tr> > <tr><td>sin</td><td>cos</td></tr> > <tr><td>tan</td><td>baz</td></tr> > ... > </table> > </div> > ``` > > ```css > .table-wrapper { > overflow-x: auto; > } > > th { > position: sticky; > top: 0; > } > ``` > > [**看演示**](https://codepen.io/valtlai/pen/XVrbPY/left/) > > 我需要水平滚动和粘性标题。 -- GitHub Notification of comment by shuishuidelin Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/865#issuecomment-1148584876 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 June 2022 12:14:18 UTC