Re: [csswg-drafts] [css3 positioning] support position:sticky inside an overflow:hidden|auto on general parents (#865)

> 让它工作会很好:
> 
> ```
> <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