tooltip 相关问题

工具提示是GUI(图形用户界面)元素,当鼠标指针悬停在GUI中的项目上并提供一些上下文信息或说明时,它通常会弹出。

我的工具提示位置有问题,总是在同一个地方显示位置

这是代码,是一个简单的工具提示,但我冻结在这里!!帮助 const StyledTooltip = styled.div` 位置:绝对; 可见性:隐藏; 背景:#666565; ` 常量元素 = styled.div` 背景...

回答 0 投票 0

使用带有自定义箭头的 jQuery UI 工具提示会导致工具提示问题

我正在使用工具提示自定义样式插件... 现在我想显示我的工具提示消息,如这些站点上显示的和照片中所示(例如,工具提示中有一个箭头): 例子...

回答 3 投票 0

How to apply the css "display:block" to MudBlazor Tooltip?

我们有一个工具提示,想在里面放置一个应该可以点击的 url。因此,如果我们将鼠标悬停在上方,工具提示应该保留。当我们离开工具提示窗口时,它应该会消失。 例子...

回答 0 投票 0

如何在 React / JS 中创建一个在内部像模式一样工作的工具提示?

有一个用例,其中一个父第三方网格在所有生成的单元格/行中都设置了溢出,这导致我们使用的任何工具提示由于 th 上的溢出设置而被切断...

回答 0 投票 0

使用 clip-path 获取工具提示的圆形边框

有一个非常烦人的 CSS 挑战,我需要使工具提示具有线性渐变背景,并且周围有圆形边框。 这是我的解决方法,但只有顶部的两个角有一个圆形......

回答 0 投票 0

如何让图形特定数据出现在工具提示中 - D3.js

我对 d3 的一切都很陌生,并且试图根据书评数据制作一个简单的交互式条形图,其中 x 轴为标题,y 轴为平均评分。我希望有一个...

回答 0 投票 0

D3.js条形图添加工具提示的建议

我对 D3 非常陌生,正在尝试制作一个简单的交互条形图。用于此的数据是一个简短的 csv,其中包含书名、平均评分和评论数量。所以...

回答 0 投票 0

如何通过kepler.gl代码获取用户点击点数据

我使用 react 和 kepler.gl 创建了一个地图,我正在通过 kepler.gl 操作 addDataToMap 动态加载数据。从 kepler.gl 当我们悬停在一个点上时,我们可以看到来自工具的数据......

回答 0 投票 0

Bootstrap 工具提示功能不起作用

为了了解工具提示在 Bootstrap 中的工作原理,我遵循了文档中的说明。但是当我尝试在这里重新创建他们的示例页面时,特别是只有图标的侧边栏,我无法获得工具提示......

回答 0 投票 0

在 VS Code 中使用 C/C++,如何在符号的工具提示描述中创建列表和表格?

我正在使用 VS Code 用 C 语言编程。 C/C++ 扩展使您能够创建描述、文档并在将鼠标悬停在符号上时显示它。 /** * @brief Gene...

回答 1 投票 0

在 VS Code 中使用 C/C++,如何在符号的工具提示描述中创建列表和表格?

我正在使用 VS Code 用 C 语言编程。 C/C++ 扩展使您能够创建描述、文档并在将鼠标悬停在符号上时显示它。 /** * @brief Gene...

回答 1 投票 0

角度 15 中的 ng-bootstrap 14 工具提示问题

我正在将 Angular 项目从 14 升级到 15,包括 ng-bootstrap 从 13.1.1 升级到 14.1.0。 在大多数情况下,升级进展顺利,除了 ng-

回答 1 投票 0

将工具提示文本附加到工具提示容器

我有一个包含工具提示和工具提示文本类的文档。当我使用 class=tooltip 定义 或 时,工具提示文本出现在封闭的 容器上方,而不是 di... 我有一个包含工具提示和工具提示文本类的文档。当我使用 class=tooltip 定义 或 时,工具提示文本出现在封闭的 容器上方,而不是直接在文本上方。 <!DOCTYPE HTML> <html lang=en> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <TITLE>favorite things</TITLE> <META name="KEYWORDS" CONTENT="filk"> <style> p { left:20%; position:relative; right:-20%; text-indent:2em; width:60%; } p.drop { text-indent:2em; } p.drop::first-letter { font-size:2em; text-indent:-2em; } a.L,div.L,span.L { display:inline; width:14%; position:absolute; left:-20%; } a.R,div.R,span.R { display:inline; width:14%; position:absolute; right:00%; } h1 { text-align:center; font-size:4em; } img.V { display:block; margin:10% 10% 10% 10%; max-width:90%; width:100%; } /* Tooltip container */ .tooltip { border-bottom: 1px dotted black; /* If you want dots under the hoverable text */ } /* Tooltip text */ .tooltip .tooltiptext { visibility: hidden; width: 120px; background-color: #555; color: #fff; text-align: center; padding: 5px 0; border-radius: 6px; /* Position the tooltip text */ position: absolute; z-index: 1; bottom: 102%; left: 10%; margin-left: -40px; Min-width: 20em; max-width: 70em; /* Fade in tooltip */ opacity: 0; transition: opacity 0.3s; } .L .tooltiptext { left: 10%; text-align: left; } .R .tooltiptext { left: -50%; text-align: left; } /* Tooltip arrow */ /* left: 15%; */ .tooltip .tooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } .L .tooltiptext::after { left: 15%; } .R .tooltiptext::after { left: 30%; } /* Show the tooltip text when you mouse over the tooltip container */ .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } .verse { font-size: 2em; text-align: center; width:60% } </style> </head> <BODY LANG="en-US" DIR="LTR"> <H1>My favorite things</H1> <p> [Verse] </p> <p class="drop verse"> Gardening <a class=tooltip href="https://en.wikipedia.org/wiki/Ungoliant"> spiders <span class=tooltiptext> Ungoliant, who took the form of a giant spider and, along with Dark Lord Melkor, destroyed the Two Trees of Valinor </span> </a> <a class=L href="https://en.wikipedia.org/wiki/The_Silmarillion"> <img class=V src="../Images/Silmarillion.png" alt="The Silmarillion"> </a> <br> <a class=R href="https://en.wikipedia.org/wiki/The_Fellowship_of_the_Ring"> <img class=V src="https://upload.wikimedia.org/wikipedia/en/8/8e/The_Fellowship_of_the_Ring_cover.gif" alt="The Fellowship of the Ring"> </a> And <a class=tooltip href="https://en.wikipedia.org/wiki/Middle-earth_weapons_and_armour#Narsil"> swords that are broken <span class=tooltiptext> Elendil&apos;s sword Narsil, called <q>The Sword that was Broken</q> after its damage in a battle against Sauron, and later caried by Aragorn (<q>Strider</q>). </span> </a> <br> Words in the <a class=tooltip href="https://en.wikipedia.org/wiki/Black_Speech"> Black Speech <span class=tooltiptext> The Black Speech of Mordor is a language constructed by Sauron. </span> </a> <br> That must not be spoken <br> <a class=tooltip href="https://en.wikipedia.org/wiki/Denethor"> Unfaithful stewards <span class=tooltiptext> Denethor, the 26th ruling Steward of Gondor. </span> </a> <br> <a class="L tooltip" href="https://en.wikipedia.org/wiki/The_Return_of_the_King"> <img class=V src="../Images/81UzbZbGPUL._SL1500_.jpg" alt="The Return of the King"> <span class=tooltiptext> Denethor, the 26th ruling Steward of Gondor. </span> </a> Who don't want their kings <br> These are a few of <br> My favorite things. </p> </BODY> </HTML> 次要问题是箭头太宽了 我尝试制作 .tooltip display: inline-block,但这在渲染中引入了无关的空间。 <!DOCTYPE HTML> <html lang=en> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <TITLE>favorite things</TITLE> <META name="KEYWORDS" CONTENT="filk"> <style> p { left:20%; position:relative; right:-20%; text-indent:2em; width:60%; } p.drop { text-indent:2em; } p.drop::first-letter { font-size:2em; text-indent:-2em; } a.L,div.L,span.L { display:inline; width:14%; position:absolute; left:-20%; } a.R,div.R,span.R { display:inline; width:14%; position:absolute; right:00%; } h1 { text-align:center; font-size:4em; } img.V { display:block; margin:10% 10% 10% 10%; max-width:90%; width:100%; } /* Tooltip container */ .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; /* If you want dots under the hoverable text */ } /* Tooltip text */ .tooltip .tooltiptext { visibility: hidden; width: 120px; background-color: #555; color: #fff; text-align: center; padding: 5px 0; border-radius: 6px; /* Position the tooltip text */ position: absolute; z-index: 1; bottom: 102%; left: 10%; margin-left: -40px; Min-width: 20em; max-width: 70em; /* Fade in tooltip */ opacity: 0; transition: opacity 0.3s; } .L .tooltiptext { left: 10%; text-align: left; } .R .tooltiptext { left: -50%; text-align: left; } /* Tooltip arrow */ /* left: 15%; */ .tooltip .tooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } .L .tooltiptext::after { left: 15%; } .R .tooltiptext::after { left: 30%; } /* Show the tooltip text when you mouse over the tooltip container */ .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } .verse { font-size: 2em; text-align: center; width:60% } </style> </head> <BODY LANG="en-US" DIR="LTR"> <H1>My favorite things</H1> <p> [Verse] </p> <p class="drop verse"> Gardening <a class=tooltip href="https://en.wikipedia.org/wiki/Ungoliant"> spiders <span class=tooltiptext> Ungoliant, who took the form of a giant spider and, along with Dark Lord Melkor, destroyed the Two Trees of Valinor </span> </a> <a class=L href="https://en.wikipedia.org/wiki/The_Silmarillion"> <img class=V src="../Images/Silmarillion.png" alt="The Silmarillion"> </a> <br> <a class=R href="https://en.wikipedia.org/wiki/The_Fellowship_of_the_Ring"> <img class=V src="https://upload.wikimedia.org/wikipedia/en/8/8e/The_Fellowship_of_the_Ring_cover.gif" alt="The Fellowship of the Ring"> </a> And <a class=tooltip href="https://en.wikipedia.org/wiki/Middle-earth_weapons_and_armour#Narsil"> swords that are broken <span class=tooltiptext> Elendil&apos;s sword Narsil, called <q>The Sword that was Broken</q> after its damage in a battle against Sauron, and later caried by Aragorn (<q>Strider</q>). </span> </a> <br> Words in the <a class=tooltip href="https://en.wikipedia.org/wiki/Black_Speech"> Black Speech <span class=tooltiptext> The Black Speech of Mordor is a language constructed by Sauron. </span> </a> <br> That must not be spoken <br> <a class=tooltip href="https://en.wikipedia.org/wiki/Denethor"> Unfaithful stewards <span class=tooltiptext> Denethor, the 26th ruling Steward of Gondor. </span> </a> <br> <a class="L tooltip" href="https://en.wikipedia.org/wiki/The_Return_of_the_King"> <img class=V src="../Images/81UzbZbGPUL._SL1500_.jpg" alt="The Return of the King"> <span class=tooltiptext> Denethor, the 26th ruling Steward of Gondor. </span> </a> Who don't want their kings <br> These are a few of <br> My favorite things. </p> </BODY> </HTML> 我不明白为什么,但似乎是text-indent触发了问题;将其更改为margin-left解决了问题。

回答 1 投票 0

如何在多行文本选择的中心对齐工具提示

我需要在文本选择的中心对齐工具提示。这是我到目前为止获得正确位置的代码: const getTooltipPosition = () => { 常量选择 = window.getSele ...

回答 0 投票 0

如何防止工具提示在表格中创建垂直滚动条?

我创建了一个表格,其中嵌入了工具提示。在表格底部附近,工具提示悬停的长度会在表格中创建一个永久的垂直滚动条以适合工具提示。但是我想要

回答 0 投票 0

如何设置 MUI 工具提示的样式?

如何设置 MUI 工具提示文本的样式?悬停时的默认工具提示是黑色的,没有文字换行。是否可以更改背景、颜色等?这个选项甚至可用吗?

回答 11 投票 0

图标未呈现的闪亮工具提示

我确定有一个非常简单的解决方案,但我似乎无法弄清楚。我想在闪亮的仪表板中的图标上创建工具提示。图标呈现正常,但工具提示不起作用...

回答 0 投票 0

在记事本中更改功能工具提示的背景颜色++

我已经完成了以下操作,但这不是这里的问题。 如何在 Notepad++ 文本编辑器中更改背景颜色? 我正在使用 notepad++ 在 python 中编程并应用 Deep Black

回答 2 投票 0

导出带有工具提示和标签的图表

我正在尝试将 highcharts 图表导出为 pdf。它似乎正确导出,但缺少工具提示或任何类型的标签。 我有 2 个圆形图和线性图的组合...

回答 1 投票 0

工具提示中有 3 个值的 Flot Chart

我想创建一个带有工具提示和 3 个值的图表。 所以我创建了如下数据: var d1 = [[1678780801000,137.00,'测试'],.... 我希望我可以将 tootip 与 ....y=item.dat...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.