Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 如何在Magento 2中添加工具提示_User Interface_Magento_Magento2 - Fatal编程技术网

User interface 如何在Magento 2中添加工具提示

User interface 如何在Magento 2中添加工具提示,user-interface,magento,magento2,User Interface,Magento,Magento2,我正在使用自定义模板,刚刚添加: <span class="custom-tooltip"> <a href="#" class="tooltip-toggle">Test ?</a> <span class="tooltip-content">Tolltip description come here</span> </span> 但它不起作用,我做错了还是错过了 请建议在较少的文件中添加以下代码 .cu

我正在使用自定义模板,刚刚添加:

<span class="custom-tooltip">
    <a href="#" class="tooltip-toggle">Test ?</a>
    <span class="tooltip-content">Tolltip description come here</span>
</span>
但它不起作用,我做错了还是错过了


请建议在较少的文件中添加以下代码

.custom-tooltip {
    .lib-tooltip(right);
}
然后运行
bin/magento安装程序:升级
命令


已将magento 2.1.7版签入magneto 2.2.2版

,其中需要添加此CSS的文件更少?@senthil page.lessthanks,现在它可以工作了,但对于移动设备,它不能工作。因此,我需要补充什么
.custom-tooltip {
    .lib-tooltip(right);
}