溢出滚动x和可见的y
我的问题与此设置有关: https://play.tailwindcss.com/477uvfmgtao
标记名元素,工具提示出现……但是,该行可在x方向上滚动。这是强制性的。 但是,当我设置此溢出行为时,该工具提示在悬停和滚动中看不到……。
我想让工具提示朝y方向溢出,而我可以沿x方向滚动,这是怎么可能的?
正如我所看到的,与答案有关,我的问题并没有导致我的想法。
⭐️我想要的是这种行为:
My question is related to this setup: https://play.tailwindcss.com/47UVFMGtao
When you hover a TagName element, a tooltip appears … however, the row is scrollable in x direction. This is mandatory.
However, when I set this overflow behavior, the tooltip is not visible on hover and also to scroll….
I want to let the tooltip overflow the row in y direction while I can scroll in x direction , how is this possible?
As I see related to the answers, my question is not leading to my idea.
⭐️ What I want is this behaviour:
???? Not this:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要为Div包装器提供固定宽度,如下所示:
这将使工具提示完全可见,并且在Y轴上也不会添加滚筒。
you need to give a fixed width to the div wrapper like below:
This will allow the tooltip to be fully visible and also there will be no scrollers added to the y-axis.
首先,您可以通过在
index.css
文件中添加此实用程序来隐藏滚动条。然后,您只需在Main Div中添加类
No-Scrollbar
即可。其次,现在只是垂直滚动以使您的工具提示可见。
First of all you can hide the scrollbar by adding this utility in
index.css
file.Then you just add the class
no-scrollbar
in main div.Secondly now just scroll vertically to get your tooltip visible.