开发者

tbody scroll not working in safari

开发者 https://www.devze.com 2023-01-11 12:48 出处:网络
I have defined a HTML table with thead, tbody and tfoot and also I have given tbody vertical scroll. The scroll is working fine in fire fox but its not active in safari. I googled and found that tbody

I have defined a HTML table with thead, tbody and tfoot and also I have given tbody vertical scroll. The scroll is working fine in fire fox but its not active in safari. I googled and found that tbody scroll will not work, is there any a开发者_StackOverflow社区lternative for this issue?


I'm afraid this is not supported by the CSS specification. Quoting Boris Zbarsky, a leading Mozilla developer:

Note that the Firefox implementation was removed, because it violated the CSS2.1 spec, caused compatibility problems for other browsers, and was buggy to the point that it wasn't worth the effort needed to maintain it (esp. given the other strikes against it).


You can use overflow-x:scroll. It works properly

0

精彩评论

暂无评论...
验证码 换一张
取 消