Materializecss 工具提示未显示
我正在尝试使用其网站上显示的示例第一次使用具体化工具提示。但是,工具提示没有显示。我缺少什么?这是小提琴的链接: https://jsfiddle.net/L013uvms/5/
<textarea id="causative_micro_organisms" class="materialize-textarea tooltipped" data-position="top" data-tooltip="I am a tooltip" required="" aria-required="true"></textarea>
<label for="causative_micro_organisms">What are the LIKELY causative Micro-organisms?</label>
我还初始化了工具提示
$(document).ready(function() {
$('select').formSelect();
$('.tooltipped').tooltip();
})
I am trying to use materialize tool tip for the first time using the example shown on its website. However, the tool tip is not showing up. What am I missing? Here is the link to the fiddle : https://jsfiddle.net/L013uvms/5/
<textarea id="causative_micro_organisms" class="materialize-textarea tooltipped" data-position="top" data-tooltip="I am a tooltip" required="" aria-required="true"></textarea>
<label for="causative_micro_organisms">What are the LIKELY causative Micro-organisms?</label>
I have also initialized the tool-tip
$(document).ready(function() {
$('select').formSelect();
$('.tooltipped').tooltip();
})
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它可能有效,但它是看不见的。检查
_tooltip.scss
中的.material-tooltip
背景色是否透明。如果是,请将其设置为所需的颜色。就我而言,我将其设置为黑色:It may works but it's invisible. Check if
.material-tooltip
background color in_tooltip.scss
is transparent. If yes, set it to desired color. In my case I set it to black:作为 Materialize 网站的文档,在文档准备
相关链接之前添加这些内容 https://materializecss.com/tooltips.html
as docs of materialize website add these before document ready
related link https://materializecss.com/tooltips.html